Skip to content

Commit

Permalink
fix(Client): Webhook messages with attachment (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eucladia committed Apr 10, 2024
1 parent b7f9343 commit 7524a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 7524a40

Please sign in to comment.