summaryrefslogtreecommitdiff
path: root/src/commands/voice/skip.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/voice/skip.ts')
-rw-r--r--src/commands/voice/skip.ts36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/commands/voice/skip.ts b/src/commands/voice/skip.ts
deleted file mode 100644
index b4cef15..0000000
--- a/src/commands/voice/skip.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-//@ts-ignore
-import emoji from 'emoji-random';
-
-module.exports = class SkipVoice extends Command {
- constructor(client: CommandoClient) {
- super(client, {
- name: 'skip',
- group: 'voice',
- memberName: 'skip',
- description: 'Skip one song ahead in the current queue.',
- guildOnly: true,
- examples: ['uwu!skip'],
- clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- throttling: {
- usages: 5,
- duration: 30
- },
- });
- }
- //@ts-ignore
- run(msg: CommandoMessage) {
- const voiceChannel = msg.member.voice.channel;
- if (!voiceChannel) return msg.reply('Please join a channel and try again. ' + emoji.random());
-
- //@ts-ignore
- if (typeof msg.guild.musicData.songDispatcher == 'undefined' ||
- //@ts-ignore
- msg.guild.musicData.songDispatcher == null) {
- return msg.reply('There isn\'t any audio playing right now. ' + emoji.random());
- }
- //@ts-ignore
- msg.guild.musicData.songDispatcher.end();
- }
-}; \ No newline at end of file