From 5091dce3b584a5309f9f1a711ba9782389f7d9b2 Mon Sep 17 00:00:00 2001 From: Neko Life Date: Thu, 27 May 2021 23:07:24 +0000 Subject: [PATCH] Owners are users. Not ID hm --- cmds/utility/send.js | 2 +- cmds/utility/servav.js | 2 +- cmds/utility/setfootq.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmds/utility/send.js b/cmds/utility/send.js index 3365477..ed67185 100644 --- a/cmds/utility/send.js +++ b/cmds/utility/send.js @@ -28,7 +28,7 @@ module.exports = class send extends commando.Command { if (!channel) { channel = findChannelRegEx(msg, search, ["category", "voice"])[0]; if (!channel) { - if (this.client.owners.includes(msg.author.id)) { + if (this.client.owners.includes(msg.author)) { channel = this.client.channels.cache.get(search); } if (!channel) { diff --git a/cmds/utility/servav.js b/cmds/utility/servav.js index e432121..be7aa8a 100644 --- a/cmds/utility/servav.js +++ b/cmds/utility/servav.js @@ -31,7 +31,7 @@ module.exports = class servav extends commando.Command { } const footerQuote = res?.["settings"]?.defaultEmbed?.footerQuote; let icon, target; - if (server_ID && this.client.owners.includes(msg.author.id)) { + if (server_ID && this.client.owners.includes(msg.author)) { if (!/\D/.test(server_ID)) { target = this.client.guilds.cache.get(server_ID); } else { diff --git a/cmds/utility/setfootq.js b/cmds/utility/setfootq.js index e427c40..d164ecf 100644 --- a/cmds/utility/setfootq.js +++ b/cmds/utility/setfootq.js @@ -17,7 +17,7 @@ module.exports = class setfootq extends commando.Command { } async run(msg, args) { try { - if (msg.guild ? !msg.guild.member(msg.author).hasPermission("MANAGE_GUILD") : false && !this.client.owners.includes(msg.author.id)) { + if (msg.guild ? !msg.guild.member(msg.author).hasPermission("MANAGE_GUILD") : false && !this.client.owners.includes(msg.author)) { return trySend(this.client, msg, 'No lol'); } const data = msg.guild ? "Guild" : "User";