public static async void ClearWarns(SocketGuildUser moderator, ITextChannel channel, SocketGuildUser user) { //Announce clearing of warns in both channel and bot-logs var embed = Embeds.ClearWarns(moderator, channel, user); await channel.SendMessageAsync("", embed : embed).ConfigureAwait(false); var botlog = await channel.Guild.GetTextChannelAsync(UserSettings.Channels.BotLogsId(user.Guild.Id)); if (botlog != null) { await botlog.SendMessageAsync("", embed : embed).ConfigureAwait(false); } //Clear warns from this user UserSettings.Warns.Clear(channel.Guild.Id, user.Id); }