summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-18 09:47:01 +0200
committerRory& <root@rory.gay>2025-10-18 09:52:00 +0200
commitf34150ab867d4e8bd9d13c1eab021e3f66693ae2 (patch)
tree94a196d1966d4d64271d43e85ea5ae8b6b9f5d97 /src
parentfeat: add `interaction_metadata` to `toJSON` (diff)
downloadserver-ts-f34150ab867d4e8bd9d13c1eab021e3f66693ae2.tar.xz
chore: complete `MessageInteractionSchema` more
Diffstat (limited to 'src')
-rw-r--r--src/schemas/uncategorised/MessageCreateSchema.ts14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/schemas/uncategorised/MessageCreateSchema.ts b/src/schemas/uncategorised/MessageCreateSchema.ts

index c1cdf6f7..e7592d03 100644 --- a/src/schemas/uncategorised/MessageCreateSchema.ts +++ b/src/schemas/uncategorised/MessageCreateSchema.ts
@@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { InteractionType } from "@spacebar/util"; -import { ActionRowComponent, Embed, PollAnswer, PollMedia, PublicUser } from "@spacebar/schemas"; +import { InteractionType, Snowflake } from "@spacebar/util"; +import { ActionRowComponent, ApplicationCommandType, Embed, PollAnswer, PollMedia, PublicUser } from "@spacebar/schemas"; export type MessageCreateAttachment = { id: string; @@ -84,7 +84,15 @@ export interface PollCreationSchema { interface MessageInteractionSchema { id: string; - name: string; type: InteractionType; + name: string; + command_type?: ApplicationCommandType; + ephemerality_reason?: number; user?: PublicUser; // It has to be optional cause LSP gives an errors for some reason + authorizing_integration_owners?: object; // It has to be optional cause LSP gives an errors for some reason + original_response_message_id?: Snowflake; + interacted_message_id?: Snowflake; + triggering_interaction_metadata?: MessageInteractionSchema; + target_user?: PublicUser; + target_message_id?: Snowflake; }