|
|
- module.exports = {
- name: 'stop',
- description: 'Stop all songs in the queue!',
- roles: ['732550362199752764', '732345527143759943'],
- execute(message) {
- const serverQueue = message.client.queue.get(message.guild.id);
- if (!message.member.voice.channel) return message.channel.send('You have to be in a voice channel to stop the music!');
- serverQueue.songs = [];
- serverQueue.connection.dispatcher.end();
- },
- };
|