From 42455eef95aa846edb31bb82edf568a0096a9438 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Jun 2020 14:13:20 -0400 Subject: [PATCH] Fix --- structures/phone/PhoneCall.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index 147901a1..5bf16cb3 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -99,7 +99,7 @@ module.exports = class PhoneCall { this.setTimeout(); if (!this.client.isOwner(msg.author)) { const ratelimit = this.ratelimitMeters.get(msg.author.id); - if (!ratelimit) this.ratelimitMeters.set(msg.author.id, 1); + if (!ratelimit) this.ratelimitMeters.set(msg.author.id, 0); if (ratelimit > 1) { this.cooldown.add(msg.author.id); setTimeout(() => { @@ -107,7 +107,7 @@ module.exports = class PhoneCall { this.ratelimitMeters.set(msg.author.id, 0); }, 10000); } else { - this.ratelimitMeters.set(msg.author.id, ratelimit + 1); + this.ratelimitMeters.set(msg.author.id, this.ratelimitMeters.get(msg.author.id) + 1); setTimeout(() => this.ratelimitMeters.set(msg.author.id, 0), 5000); } }