summary refs log tree commit diff
path: root/src/schemas/api/bots/InteractionCreateSchema.ts
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-19 16:31:35 +0200
committerRory& <root@rory.gay>2025-10-19 20:15:47 +0200
commitbbd0617d53b262ccb642b9fff6d0eb9ea0c9936e (patch)
tree88ec7ee7196166f443d1b9fadaf4a27196a64b22 /src/schemas/api/bots/InteractionCreateSchema.ts
parentMake reconicle migration not suck (diff)
downloadserver-ts-bbd0617d53b262ccb642b9fff6d0eb9ea0c9936e.tar.xz
fix: interaction callback
Diffstat (limited to 'src/schemas/api/bots/InteractionCreateSchema.ts')
-rw-r--r--src/schemas/api/bots/InteractionCreateSchema.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/schemas/api/bots/InteractionCreateSchema.ts b/src/schemas/api/bots/InteractionCreateSchema.ts
new file mode 100644

index 000000000..4bcf09ab6 --- /dev/null +++ b/src/schemas/api/bots/InteractionCreateSchema.ts
@@ -0,0 +1,32 @@ +import { PublicMember, PublicUser, Snowflake } from "@spacebar/schemas"; +import { Channel, InteractionType, Message } from "@spacebar/util"; + +export interface InteractionCreateSchema { + version: number; // TODO: types? + id: Snowflake; + application_id: Snowflake; + type: InteractionType; + token: string; + data?: object; // TODO: types? + guild?: InteractionGuild; + guild_id?: Snowflake; + guild_locale?: string; + channel?: Channel; // TODO: is this right? + channel_id?: Snowflake; + member?: PublicMember; // TODO: is this right? + user?: PublicUser; // TODO: is this right? + locale?: string; + message?: Message; // TODO: is this right? + app_permissions: string; + entitlements?: object[]; // TODO: types? + entitlement_sku_ids?: Snowflake[]; // DEPRECATED + authorizing_integration_owners?: Record<number, Snowflake>; // TODO: types? + context?: number; + attachment_size_limit: number; +} + +interface InteractionGuild { + id: Snowflake; + features: string[]; + locale: string; +}