From 385b0960abdc8bb13172330a973dafd56560cf8d Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Tue, 7 Jul 2020 03:55:21 -0700 Subject: 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 --- src/commands/voice/queue.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/commands/voice/queue.ts') 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); -- cgit v1.2.3