aboutsummaryrefslogtreecommitdiff
path: root/To be worked on/leave.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-23 11:41:02 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-23 11:41:02 -0400
commited456ef581c5acd852a924d9cc274a259b2d8ce5 (patch)
tree33be62f54239fa6f6b61b9488dbfde329ae1fd78 /To be worked on/leave.js
parent1ce861095b2793a1b49546c0adf460fbc2fc5d9f (diff)
downloadAleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.gz
AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.bz2
AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.zip
Converted to Discord.JS v12, starting database
Diffstat (limited to 'To be worked on/leave.js')
-rw-r--r--To be worked on/leave.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/To be worked on/leave.js b/To be worked on/leave.js
index 63915c8..da0b4cc 100644
--- a/To be worked on/leave.js
+++ b/To be worked on/leave.js
@@ -19,24 +19,24 @@
* *************************************/
module.exports.run = async (client, message, args) => {
- if (!message.member.voiceChannel) return message.reply('You need a voice channel to perform this action.');
+ if (!message.member.voiceChannel) return message.reply('You need a voice channel to perform this action.');
- if (!message.guild.me.voiceChannel) return message.reply('Error: The bot isn\'t connected to a voice channel.');
+ if (!message.guild.me.voiceChannel) return message.reply('Error: The bot isn\'t connected to a voice channel.');
- if (message.guild.me.voiceChannelID !== message.member.voiceChannelID) return message.reply('Error: You aren\'t connected in the same voice channel as the bot...');
+ if (message.guild.me.voiceChannelID !== message.member.voiceChannelID) return message.reply('Error: You aren\'t connected in the same voice channel as the bot...');
- message.guild.me.voiceChannel.leave();
+ message.guild.me.voiceChannel.leave();
- message.channel.send('Leaving channel...');
+ message.channel.send('Leaving channel...');
};
exports.conf = {
- aliases: [],
- guildOnly: false,
+ aliases: [],
+ guildOnly: false,
};
exports.help = {
- name: 'leave',
- description: 'Leaves voice chat.',
- usage: 'leave',
- category: '- Music Commands',
+ name: 'leave',
+ description: 'Leaves voice chat.',
+ usage: 'leave',
+ category: '- Music Commands',
};