aboutsummaryrefslogtreecommitdiff
path: root/commands/Owners Only/modifycredits.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Owners Only/modifycredits.js')
-rw-r--r--commands/Owners Only/modifycredits.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/commands/Owners Only/modifycredits.js b/commands/Owners Only/modifycredits.js
index 050d74d..6ec7506 100644
--- a/commands/Owners Only/modifycredits.js
+++ b/commands/Owners Only/modifycredits.js
@@ -8,8 +8,6 @@
* *************************************/
exports.run = async (bot, msg) => {
- if (!['242775871059001344', '247221105515823104', '236279900728721409', '269516487566426112'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.');
-
let user;
if (!msg.mentions.users.first()) {
user = msg.author;
@@ -24,6 +22,11 @@ exports.run = async (bot, msg) => {
msg.channel.send(`Reset ${user.tag}'s credits.`);
};
+exports.checkPermission = (bot, member) => {
+ if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(member.id)) return false;
+ return true;
+}
+
exports.conf = {
aliases: [],
guildOnly: true,