diff --git a/Xiao.js b/Xiao.js index 584662fe..cca684e2 100644 --- a/Xiao.js +++ b/Xiao.js @@ -66,7 +66,6 @@ client.on('message', async msg => { if (origin) await origin.send(origin.recipient, msg); if (recipient) await recipient.send(recipient.origin, msg); } catch (err) { - console.log(err); return; // eslint-disable-line no-useless-return } }); diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index 60a4853c..bdccce55 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -47,7 +47,7 @@ module.exports = class PhoneCall { await this.recipient.send('☎️ Call ended due to inactivity.'); } else { const quitter = nonQuitter.id === this.origin.id ? this.recipient : this.origin; - await nonQuitter.send(`☎️ **${channel.guild.name}** hung up.`); + await nonQuitter.send(`☎️ **${quitter.guild.name}** hung up.`); await quitter.send('☎️ Hung up.'); } return this;