예제 #1
0
        public async Task RenameVoiceChannel(string newName)
        {
            if (!IsUserAModeratorInCurrentVoiceChannel(Context.User))
            {
                await GiveNoPermissionError(Context.User);

                return;
            }

            await _service.RenameChannel(Context.User, newName);
        }