Skip to content

Commit 7524a40

Browse files
authored
fix(Client): Webhook messages with attachment (#1490)
1 parent b7f9343 commit 7524a40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ class Client extends EventEmitter {
25322532
options.embeds.push(options.embed);
25332533
}
25342534
options.avatar_url = options.avatarURL;
2535-
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);
2535+
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);
25362536
}
25372537

25382538
/**

0 commit comments

Comments
 (0)