Fix hanging up error

This commit is contained in:
Dragon Fire
2020-02-28 15:49:17 -05:00
parent edaec1fd0f
commit b7b0c957b7
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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
}
});
+1 -1
View File
@@ -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;