From d2aa20ffb5361912d92d4b94aa3f4f1b563946c9 Mon Sep 17 00:00:00 2001 From: supositware Date: Mon, 13 Sep 2021 14:47:13 +0200 Subject: [PATCH] Fix owned command --- commands/hidden/owned.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/hidden/owned.js b/commands/hidden/owned.js index d5fa05ff..86d35b49 100644 --- a/commands/hidden/owned.js +++ b/commands/hidden/owned.js @@ -27,23 +27,23 @@ class OwnedCommand extends Command { if (args.member) { - if (args.member.id == this.client.user.id) { + if (args.member.id === this.client.user.id) { return message.reply('You really thought you could own me?, pathetic...'); - } else if (args.member.id == this.client.ownerID) { + } else if (args.member.id === this.client.ownerID) { return message.reply('You really thought you could own him?, pathetic...'); - } else if (args.member.id == '286054184623538177' || args.member.id == '172112210863194113') { + } else if (args.member.id === '286054184623538177' || args.member.id === '172112210863194113') { owned = message.author; } - if (ownedMessage == epicMessage[0]) { + if (ownedMessage === epicMessage[0]) { return message.reply(ownedMessage); } - return message.send(`${owned}, ${ownedMessage}`); + return message.channel.send(`${owned}, ${ownedMessage}`); } else { - return message.send(ownedMessage); + return message.channel.send(ownedMessage); } } }