diff options
| author | 8cy <[email protected]> | 2020-07-07 03:55:21 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-07 03:55:21 -0700 |
| commit | 385b0960abdc8bb13172330a973dafd56560cf8d (patch) | |
| tree | 86e85d23404a5170ffbf870a6faeba77b3430e0e /src/commands/voice/queue.ts | |
| parent | add fanart for emma :star2: (diff) | |
| download | dep-core-385b0960abdc8bb13172330a973dafd56560cf8d.tar.xz dep-core-385b0960abdc8bb13172330a973dafd56560cf8d.zip | |
big cool :star:
- add commenting to bot.ts
- add types to most of the voice commands
- add art and verify cmd for emma
- add roastwilly cmd
- fix rp cmd formatting
Diffstat (limited to 'src/commands/voice/queue.ts')
| -rw-r--r-- | src/commands/voice/queue.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commands/voice/queue.ts b/src/commands/voice/queue.ts index 3516a2e..f8afedd 100644 --- a/src/commands/voice/queue.ts +++ b/src/commands/voice/queue.ts @@ -1,9 +1,10 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; import { MessageEmbed }from 'discord.js'; +//@ts-ignore import emoji from 'emoji-random'; module.exports = class QueueVoice extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'queue', aliases: [ @@ -38,9 +39,12 @@ module.exports = class QueueVoice extends Command { }); } run(msg: CommandoMessage) { + //@ts-ignore if (msg.guild.musicData.queue.length == 0) return msg.say('There aren\'t any songs in the current queue. ' + emoji.random()); + //@ts-ignore const titleArray = []; + //@ts-ignore msg.guild.musicData.queue.map(obj => { titleArray.push(obj.title); }); @@ -48,6 +52,7 @@ module.exports = class QueueVoice extends Command { .setColor(0xFFCC4D) .setTitle('Music Queue ' + emoji.random()); for (let i = 0; i < titleArray.length; i++) { + //@ts-ignore queueEmbed.addField(``, `**${i + 1}**: ` + `${titleArray[i]}`); } return msg.say(queueEmbed); |