public async Task DefPrefix([Leftover] string prefix = null) { if (string.IsNullOrWhiteSpace(prefix)) { await ReplyConfirmLocalizedAsync("defprefix_current", CmdHandler.GetPrefix()).ConfigureAwait(false); return; } var oldPrefix = CmdHandler.GetPrefix(); var newPrefix = CmdHandler.SetDefaultPrefix(prefix); await ReplyConfirmLocalizedAsync("defprefix_new", Format.Code(oldPrefix), Format.Code(newPrefix)).ConfigureAwait(false); }
public new async Task Prefix() { await ReplyConfirmLocalized("prefix_current", Format.Code(CmdHandler.GetPrefix(Context.Guild))).ConfigureAwait(false); }
public async Task PrefixCommand() { await ReplyConfirmLocalizedAsync("prefix_current", Format.Code(CmdHandler.GetPrefix(ctx.Guild))).ConfigureAwait(false); }