Remove unnecessary deline method from PhoneCall

This commit is contained in:
Dragon Fire
2020-03-01 09:36:25 -05:00
parent 13ef2e2393
commit 7d9f272c0c
+1 -7
View File
@@ -16,7 +16,7 @@ module.exports = class PhoneCall {
await this.recipient.send(`☎️ Incoming call from **${this.origin.guild.name}**. Pick up?`);
const validation = await verify(this.recipient, null);
if (!validation) {
await this.decline(validation);
await this.hangup('declined', validation);
return this;
}
await this.accept();
@@ -31,12 +31,6 @@ module.exports = class PhoneCall {
return this;
}
async decline(validation) {
this.client.phone.delete(this.id);
await this.hangup('declined', validation);
return this;
}
async hangup(nonQuitter, validation) {
this.active = false;
clearTimeout(this.timeout);