From 1744c54337aabd72ca5f42725e69760b88abd00d Mon Sep 17 00:00:00 2001 From: Khaazz Date: Sun, 24 Nov 2019 10:29:02 +0100 Subject: [PATCH] change deprecated arguments call to rest param --- lib/gateway/Shard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gateway/Shard.js b/lib/gateway/Shard.js index d3ff34056..35f388eb8 100644 --- a/lib/gateway/Shard.js +++ b/lib/gateway/Shard.js @@ -1856,10 +1856,10 @@ class Shard extends EventEmitter { return base; } - emit(event) { - this.client.emit.apply(this.client, arguments); + emit(event, ...args) { + this.client.emit.call(this.client, event, ...args); if(event !== "error" || this.listeners("error").length > 0) { - super.emit.apply(this, arguments); + super.emit.call(this, event, ...args); } } }