Exemplo n.º 1
0
        private async Task FastForward([Remainder] string secs)
        {
            if (!_musicService.NodeHasPlayer(Context.Guild))
            {
                await ReplyAsync("Bot is not connected to a voice channel.");

                return;
            }

            if (Int32.TryParse(secs.Trim(), out int sec))
            {
                if (sec > 0)
                {
                    await ReplyAsync(await _musicService.FastForward(Context, sec));
                }
                else
                {
                    await ReplyAsync("Negative amount: " + secs + " is not valid.");
                }
            }
            else
            {
                await ReplyAsync("\'*" + secs + "*\' is not a valid number.");
            }
        }