private async Task <string> GetReportChanValue(string input) { if (input == "None") { return("None"); } ITextChannel chan = await Context.Guild.GetTextChannelAsync(ulong.Parse(input)); return(chan == null ? "Unknown (" + input + ")" : chan.ToString() + " (" + input + ")"); }
public async Task XpExclude(Channel _, [Leftover] ITextChannel channel = null) { if (channel == null) { channel = (ITextChannel)ctx.Channel; } var ex = _service.ToggleExcludeChannel(ctx.Guild.Id, channel.Id); await ReplyConfirmLocalizedAsync((ex ? "excluded" : "not_excluded"), Format.Bold(channel.ToString())).ConfigureAwait(false); }