Example #1
0
        private bool IsUserAModeratorInCurrentVoiceChannel(SocketUser user)
        {
            SocketGuildUser usr = Context.Guild.GetUser(user.Id);

            IVoiceChannel channel = usr.VoiceChannel;

            if (!_service.IsCustomChannel(channel.Id))
            {
                return(false);
            }
            return(_service.IsModeratorInChannel(channel, usr));
        }