We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cee355 commit fbbab0dCopy full SHA for fbbab0d
1 file changed
extensions/discord/src/send.webhook.ts
@@ -124,10 +124,13 @@ export async function sendWebhookMessageDiscord(
124
await throwWebhookResponseError(response);
125
}
126
127
- const payload = await readProviderJsonResponse<{
128
- id?: string;
129
- channel_id?: string;
130
- }>(response, "Discord webhook send");
+ const payload =
+ response.status === 204
+ ? ({} as { id?: string; channel_id?: string })
+ : await readProviderJsonResponse<{
131
+ id?: string;
132
+ channel_id?: string;
133
+ }>(response, "Discord webhook send");
134
try {
135
recordChannelActivity({
136
channel: "discord",
0 commit comments