This commit is contained in:
Dragon Fire
2020-05-13 19:04:53 -04:00
parent e00618d43c
commit 69cdda1d66
+2 -1
View File
@@ -67,7 +67,8 @@ module.exports = class PhoneCall {
return this.hangup(channel);
}
if (this.cooldown.has(msg.author.id) && !this.client.isOwner(msg.author)) {
return this.recipient.send(`☎️ ${msg.author}, please wait **5** seconds between messages!`);
const badChannel = channel.id === this.origin.id ? this.recipient : this.origin;
return badChannel.send(`☎️ ${msg.author}, please wait **5** seconds between messages!`);
}
this.setTimeout();
if (!this.client.isOwner(msg.author)) {