This commit is contained in:
Dragon Fire
2020-07-07 11:03:51 -04:00
parent 095e69c619
commit 8bb96d719b
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class PhoneInfoCommand extends Command {
});
}
async run(msg) {
run(msg) {
const origin = this.client.phone.find(call => call.origin.id === msg.channel.id);
const recipient = this.client.phone.find(call => call.recipient.id === msg.channel.id);
if (!origin && !recipient) return msg.reply('☎️ This channel is not in a phone call.');