public async Task Bye() { var enabled = await ServerGreetCommands.SetBye(Context.Guild.Id, Context.Channel.Id).ConfigureAwait(false); if (enabled) { await ReplyConfirmLocalized("bye_on").ConfigureAwait(false); } else { await ReplyConfirmLocalized("bye_off").ConfigureAwait(false); } }
public async Task Bye() { var enabled = await ServerGreetCommands.SetBye(Context.Guild.Id, Context.Channel.Id).ConfigureAwait(false); if (enabled) { await Context.Channel.SendConfirmAsync("✅ Bye announcements **enabled** on this channel.").ConfigureAwait(false); } else { await Context.Channel.SendConfirmAsync("ℹ️ Bye announcements **disabled**.").ConfigureAwait(false); } }
public async Task Bye(IUserMessage umsg) { var channel = (ITextChannel)umsg.Channel; var enabled = await ServerGreetCommands.SetBye(channel.Guild.Id, channel.Id).ConfigureAwait(false); if (enabled) { await channel.SendConfirmAsync("✅ Bye announcements **enabled** on this channel.").ConfigureAwait(false); } else { await channel.SendConfirmAsync("ℹ️ Bye announcements **disabled**.").ConfigureAwait(false); } }