Fix owned command

This commit is contained in:
supositware 2021-09-13 14:47:13 +02:00
parent 75ec054282
commit d2aa20ffb5

View file

@ -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);
}
}
}