public static void HandleAccountDelete(WorldSession session, string[] parameters) { if (AuthDatabase.DeleteAccount(parameters[0])) { log.Info($"Account {parameters[0]} succesfully removed!"); } else { log.Error($"Cannot find account with Email : {parameters[0]}"); } }
public async Task HandleAccountDeleteAsync(CommandContext context, string subCommand, string[] parameters) { if (parameters.Length < 1) { await SendHelpAsync(context).ConfigureAwait(false); return; } if (AuthDatabase.DeleteAccount(parameters[0])) { await context.SendMessageAsync($"Account {parameters[0]} successfully removed!") .ConfigureAwait(false); } else { await context.SendMessageAsync($"Cannot find account with Email: {parameters[0]}") .ConfigureAwait(false); } }