mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
@@ -67,7 +67,8 @@ module.exports = class PhoneCall {
|
|||||||
return this.hangup(channel);
|
return this.hangup(channel);
|
||||||
}
|
}
|
||||||
if (this.cooldown.has(msg.author.id) && !this.client.isOwner(msg.author)) {
|
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();
|
this.setTimeout();
|
||||||
if (!this.client.isOwner(msg.author)) {
|
if (!this.client.isOwner(msg.author)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user