示例#1
0
        public async Task LockVoiceChannel(bool active)
        {
            if (!IsUserAModeratorInCurrentVoiceChannel(Context.User))
            {
                await GiveNoPermissionError(Context.User);

                return;
            }

            await _service.LockChannel(Context.User, active);
        }