summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <maddyunderstars@gmail.com>2025-03-21 09:45:17 +1100
committerGitHub <noreply@github.com>2025-03-21 09:45:17 +1100
commitdcd2c89062a20a669061881b5975df68aae5fb24 (patch)
treece28e332bd8561d0327afb7b9d7647ed9b014edf /src
parentMerge pull request #1256 from MathMan05/patch-4 (diff)
parentadded updates to sync with djs webhook packet (diff)
downloadserver-ts-dcd2c89062a20a669061881b5975df68aae5fb24.tar.xz
Merge pull request #1259 from thedudedies21/webhook_sync
added updates to sync with djs webhook packet
Diffstat (limited to 'src')
-rw-r--r--src/util/schemas/MessageCreateSchema.ts2
-rw-r--r--src/util/schemas/WebhookExecuteSchema.ts15
2 files changed, 15 insertions, 2 deletions
diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts

index 4eaf7c961..2538d39e5 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts
@@ -69,7 +69,7 @@ export interface MessageCreateSchema { } // TypeScript complains once this is used above -interface PollCreationSchema { +export interface PollCreationSchema { question: PollMedia; answers: PollAnswer[]; duration?: number; diff --git a/src/util/schemas/WebhookExecuteSchema.ts b/src/util/schemas/WebhookExecuteSchema.ts
index 943cbe9ed..c2617d129 100644 --- a/src/util/schemas/WebhookExecuteSchema.ts +++ b/src/util/schemas/WebhookExecuteSchema.ts
@@ -17,7 +17,10 @@ */ import { Embed } from "../entities"; -import { MessageCreateAttachment } from "./MessageCreateSchema"; +import { + MessageCreateAttachment, + PollCreationSchema, +} from "./MessageCreateSchema"; export interface WebhookExecuteSchema { content?: string; @@ -43,4 +46,14 @@ export interface WebhookExecuteSchema { flags?: number; thread_name?: string; applied_tags?: string[]; + message_reference?: { + message_id: string; + channel_id?: string; + guild_id?: string; + fail_if_not_exists?: boolean; + }; + sticker_ids?: string[]; + nonce?: string; + enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here + poll?: PollCreationSchema; }