public static async Task <Gang> DestroyGangAsync(ulong userId, ulong guildId) { var gang = await FetchGangAsync(userId, guildId); await BaseRepository <Gang> .DeleteAsync(gang); return(gang); }
public static async Task RemoveMuteAsync(ulong userId, ulong guildId) { var muted = await BaseRepository <Mute> .SearchFor(c => c.UserId == userId && c.GuildId == guildId).FirstOrDefaultAsync(); if (muted != null) { await BaseRepository <Mute> .DeleteAsync(muted); } }