aboutsummaryrefslogtreecommitdiff
path: root/commands/leaveguild.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 /commands/leaveguild.js
parent1ce861095b2793a1b49546c0adf460fbc2fc5d9f (diff)
downloadAleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.gz
AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.bz2
AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.zip
Converted to Discord.JS v12, starting database
Diffstat (limited to 'commands/leaveguild.js')
-rw-r--r--commands/leaveguild.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/commands/leaveguild.js b/commands/leaveguild.js
index fd77509..5108436 100644
--- a/commands/leaveguild.js
+++ b/commands/leaveguild.js
@@ -18,18 +18,18 @@
*
* *************************************/
module.exports.run = async (client, message) => {
- if (!['242775871059001344', message.guild.owner.user.id].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot or the owner of this guild to use this command.');
- message.channel.send('Alright, I\'m leaving the server now. Bye everyone!');
- message.guild.leave();
+ if (!['242775871059001344', message.guild.owner.user.id].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot or the owner of this guild to use this command.');
+ message.channel.send('Alright, I\'m leaving the server now. Bye everyone!');
+ message.guild.leave();
};
exports.conf = {
- aliases: [],
- guildOnly: false,
+ aliases: [],
+ guildOnly: false,
};
exports.help = {
- name: 'leaveguild',
- description: 'Makes the bot leave the server',
- usage: 'leaveguild',
- category: '- Owners Only',
+ name: 'leaveguild',
+ description: 'Makes the bot leave the server',
+ usage: 'leaveguild',
+ category: '- Owners Only',
};