From cafc5713ab19a04b13277e0837e9c3e52d5499ea Mon Sep 17 00:00:00 2001 From: Fleny Date: Sat, 24 May 2025 00:15:23 +0200 Subject: [PATCH] fix(types, bot): Clarify interaction.message comment (#4201) Co-authored-by: Awesome Stickz --- packages/bot/src/transformers/types.ts | 2 +- packages/types/src/discord/interactions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bot/src/transformers/types.ts b/packages/bot/src/transformers/types.ts index 0a35228a6..4304c14e6 100644 --- a/packages/bot/src/transformers/types.ts +++ b/packages/bot/src/transformers/types.ts @@ -911,7 +911,7 @@ export interface Interaction { token: string /** Read-only property, always `1` */ version: 1 - /** For the message the button was attached to */ + /** For components or modals triggered by components, the message they were attached to */ message?: Message /** the command data payload */ data?: InteractionData diff --git a/packages/types/src/discord/interactions.ts b/packages/types/src/discord/interactions.ts index 62d32dc14..424446bca 100644 --- a/packages/types/src/discord/interactions.ts +++ b/packages/types/src/discord/interactions.ts @@ -43,7 +43,7 @@ export interface DiscordInteraction { token: string /** Read-only property, always `1` */ version: 1 - /** For the message the button was attached to */ + /** For components or modals triggered by components, the message they were attached to */ message?: DiscordMessage /** the command data payload */ data?: DiscordInteractionData