diff --git a/src/client/Client.js b/src/client/Client.js index 064702253..88d770252 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -447,9 +447,9 @@ class Client extends EventEmitter { */ setTimeout(fn, delay, ...args) { const timeout = setTimeout(() => { - fn(); + fn(...args); this._timeouts.delete(timeout); - }, delay, ...args); + }, delay); this._timeouts.add(timeout); return timeout; } diff --git a/src/client/WebhookClient.js b/src/client/WebhookClient.js index 36c945e01..1dc60024e 100644 --- a/src/client/WebhookClient.js +++ b/src/client/WebhookClient.js @@ -72,9 +72,9 @@ class WebhookClient extends Webhook { */ setTimeout(fn, delay, ...args) { const timeout = setTimeout(() => { - fn(); + fn(...args); this._timeouts.delete(timeout); - }, delay, ...args); + }, delay); this._timeouts.add(timeout); return timeout; }