mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Only allow phone calls to one channel at a time
This commit is contained in:
@@ -33,4 +33,8 @@ module.exports = class XiaoClient extends CommandoClient {
|
||||
this.activities = activities;
|
||||
this.leaveMessages = leaveMsgs;
|
||||
}
|
||||
|
||||
inPhoneCall(channel) {
|
||||
return this.phone.some(call => call.origin.id === channel.id || call.recipient.id === channel.id);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user