summaryrefslogtreecommitdiff
path: root/src/commands/voice/skipall.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-23 23:24:17 -0700
committer8cy <[email protected]>2020-07-23 23:24:17 -0700
commitbb511abc03bb66848947e37a999502b813c77269 (patch)
tree612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/voice/skipall.ts
parentfix: if clear amount equal or over 100, round down to 99 (diff)
downloaddep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz
dep-core-bb511abc03bb66848947e37a999502b813c77269.zip
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/voice/skipall.ts')
-rw-r--r--src/commands/voice/skipall.ts53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/commands/voice/skipall.ts b/src/commands/voice/skipall.ts
deleted file mode 100644
index c7e0333..0000000
--- a/src/commands/voice/skipall.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-//@ts-ignore
-import emoji from 'emoji-random';
-
-module.exports = class SkipAllVoice extends Command {
- constructor(client: CommandoClient) {
- super(client, {
- name: 'skipall',
- aliases: [
- 'endqueue',
- 'endq',
- 'skipqueue',
- 'skipq'
- ],
- group: 'voice',
- memberName: 'skipall',
- description: 'Removes all the songs from current queue.',
- guildOnly: true,
- examples: [
- 'uwu!endqueue',
- 'uwu!endq',
- 'uwu!skipqueue',
- 'uwu!skipq'
- ],
- clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- throttling: {
- usages: 5,
- duration: 30
- },
- });
- }
- //@ts-ignore
- run(msg: CommandoMessage) {
- var 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
- if (!msg.guild.musicData.queue)
- return msg.say('There aren\'t any songs in the current queue. ' + emoji.random());
- //@ts-ignore
- msg.guild.musicData.songDispatcher.end();
- //@ts-ignore
- msg.guild.musicData.queue.length = 0; // clear queue
- return;
- }
-}; \ No newline at end of file