From 0ed7a8af77f2e4a2733cef2e61250e1fae032b8d Mon Sep 17 00:00:00 2001 From: dank074 Date: Sat, 12 Apr 2025 05:01:37 -0500 Subject: add ophandler for GuildSubscriptionsBulk message --- src/util/schemas/GuildSubscriptionsBulkSchema.ts | 11 +++++++++++ src/util/schemas/LazyRequestSchema.ts | 2 ++ src/util/schemas/index.ts | 1 + 3 files changed, 14 insertions(+) create mode 100644 src/util/schemas/GuildSubscriptionsBulkSchema.ts (limited to 'src/util/schemas') diff --git a/src/util/schemas/GuildSubscriptionsBulkSchema.ts b/src/util/schemas/GuildSubscriptionsBulkSchema.ts new file mode 100644 index 00000000..86f00a3d --- /dev/null +++ b/src/util/schemas/GuildSubscriptionsBulkSchema.ts @@ -0,0 +1,11 @@ +import { LazyRequestSchema } from "./LazyRequestSchema"; + +export interface GuildSubscriptionsBulkSchema { + subscriptions: { [key: string]: GuildSubscriptionSchema }; +} + +export type GuildSubscriptionSchema = Omit; + +export const GuildSubscriptionsBulkSchema = { + $subscriptions: Object, +}; diff --git a/src/util/schemas/LazyRequestSchema.ts b/src/util/schemas/LazyRequestSchema.ts index ee52d66c..ca07d37b 100644 --- a/src/util/schemas/LazyRequestSchema.ts +++ b/src/util/schemas/LazyRequestSchema.ts @@ -30,6 +30,7 @@ export interface LazyRequestSchema { threads?: boolean; typing?: true; members?: string[]; + member_updates?: boolean; thread_member_lists?: unknown[]; } @@ -40,5 +41,6 @@ export const LazyRequestSchema = { $typing: Boolean, $threads: Boolean, $members: [] as string[], + $member_updates: Boolean, $thread_member_lists: [] as unknown[], }; diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index ca473dce..f2d5844b 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -41,6 +41,7 @@ export * from "./EmojiModifySchema"; export * from "./ForgotPasswordSchema"; export * from "./GatewayPayloadSchema"; export * from "./GuildCreateSchema"; +export * from "./GuildSubscriptionsBulkSchema"; export * from "./GuildTemplateCreateSchema"; export * from "./GuildUpdateSchema"; export * from "./GuildUpdateWelcomeScreenSchema"; -- cgit 1.5.1