diff --git a/lib/Client.js b/lib/Client.js index d04755fd9..7d0e9e1a6 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -2532,7 +2532,7 @@ class Client extends EventEmitter { options.embeds.push(options.embed); } options.avatar_url = options.avatarURL; - return this.requestHandler.request("POST", Endpoints.WEBHOOK_TOKEN(webhookID, token) + (qs ? "?" + qs : ""), !!options.auth, options.file ? {payload_json: options} : options, file).then((response) => options.wait ? new Message(response, this) : undefined); + return this.requestHandler.request("POST", Endpoints.WEBHOOK_TOKEN(webhookID, token) + (qs ? "?" + qs : ""), !!options.auth, file ? {payload_json: options} : options, file).then((response) => options.wait ? new Message(response, this) : undefined); } /**