summary refs log tree commit diff
path: root/src/schemas/api/bots/SendableApplicationCommandDataSchema.ts
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-17 13:01:36 +0200
committerRory& <root@rory.gay>2025-10-17 14:32:22 +0200
commit81d4f1f3107e518b8a346cd0a0501999916697fa (patch)
tree43a26397fbc43373d51fa97922ed39bae233e3f3 /src/schemas/api/bots/SendableApplicationCommandDataSchema.ts
parentfix: do the same for applicaiton_commands (diff)
downloadserver-ts-81d4f1f3107e518b8a346cd0a0501999916697fa.tar.xz
feat: interactions (incomplete)
Diffstat (limited to 'src/schemas/api/bots/SendableApplicationCommandDataSchema.ts')
-rw-r--r--src/schemas/api/bots/SendableApplicationCommandDataSchema.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/schemas/api/bots/SendableApplicationCommandDataSchema.ts b/src/schemas/api/bots/SendableApplicationCommandDataSchema.ts
new file mode 100644

index 00000000..7dfbbd00 --- /dev/null +++ b/src/schemas/api/bots/SendableApplicationCommandDataSchema.ts
@@ -0,0 +1,14 @@ +import { Snowflake } from "@spacebar/util"; +import { ApplicationCommandOption } from "../developers"; +import { ApplicationCommandType } from "./ApplicationCommandSchema"; + +export interface SendableApplicationCommandDataSchema { + id: Snowflake; + type?: ApplicationCommandType; + name: string; + version: Snowflake; + application_command?: object; + options?: ApplicationCommandOption[]; + target_id?: Snowflake; + attachments?: object[]; // idk the type +}