예제 #1
0
        public static async Task <Gang> DestroyGangAsync(ulong userId, ulong guildId)
        {
            var gang = await FetchGangAsync(userId, guildId);

            await BaseRepository <Gang> .DeleteAsync(gang);

            return(gang);
        }
예제 #2
0
        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);
            }
        }