mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update send_webhook.ts
This commit is contained in:
@@ -66,9 +66,9 @@ export async function sendWebhook(
|
|||||||
|
|
||||||
const result = await rest.runMethod<Message>(
|
const result = await rest.runMethod<Message>(
|
||||||
"post",
|
"post",
|
||||||
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${
|
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait}${
|
||||||
options.wait ? "true" : "false"
|
options.threadId ? `&thread_id=${options.threadId}` : ""
|
||||||
}${options.threadId ? `&thread_id=${options.threadId}` : ""}`,
|
}`,
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
allowed_mentions: options.allowedMentions,
|
allowed_mentions: options.allowedMentions,
|
||||||
|
|||||||
Reference in New Issue
Block a user