示例#1
0
            public async Task AddRandomHidekiSong(
                [Summary("Which end of the queue to insert the song at (appended to the back by default.)")] string qEnd = "back",
                [Summary("Channel name to play the song in (`main` or `weed`).")] string channelName = "main")
            {
                //check if channel id is valid and exists
                if (!_channelNameToIdMap.ContainsKey(channelName))
                {
                    await ReplyAsync("Invalid channel name (please use `main` or `weed`).");

                    return;
                }
                ulong voiceID = _channelNameToIdMap[channelName];

                await _service.AddRandomHidekiSong(Context.Message.Author, voiceID, qEnd != "front");
            }