Merge pull request #1259 from thedudedies21/webhook_sync

added updates to sync with djs webhook packet
This commit is contained in:
Madeline 2025-03-21 09:45:17 +11:00 committed by GitHub
commit dcd2c89062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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;

View File

@ -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;
}