示例#1
0
        public async Task MusicClear()
        {
            if (!await CanPerform())
            {
                return;
            }

            if (!_musicService.HasQueue)
            {
                await ReplyAsync(_localization.GetMessage("Music queue empty"));

                return;
            }

            _musicService.Clear();
            await ReplyAsync(_localization.GetMessage("Music queue cleared"));
        }