fix(types): update message.resolved description (#4511)

Co-authored-by: Link <link20050703@gmail.com>
This commit is contained in:
Fleny
2025-10-21 23:57:00 +02:00
committed by GitHub
parent b23ebf3412
commit bbdd2d1183
2 changed files with 5 additions and 1 deletions

View File

@@ -1234,6 +1234,10 @@ export interface Message {
tts: boolean
/** Whether this message came from the urgent message system */
urgent: boolean
// TODO: Adding this causes errors in the interaction functions due to how `InteractionResolvedDataMember` and `InteractionResolvedDataChannel` are treated by `TransformProperty`, since they get their desired props changed
// and fixing this requires a few changes in `SetupDesiredProps` and `TransformProperty` so this is going to be done in another pr
// /** data for users, members, channels, and roles referenced in this message */
// resolved?: InteractionDataResolved
}
export interface MessageActivity {

View File

@@ -105,7 +105,7 @@ export interface DiscordMessage extends Partial<DiscordMessageCreateExtra> {
position?: number
/** data of the role subscription purchase or renewal that prompted this ROLE_SUBSCRIPTION_PURCHASE message */
role_subscription_data?: DiscordRoleSubscriptionData
/** data for users, members, channels, and roles in the message's auto-populated select menus */
/** data for users, members, channels, and roles referenced in this message */
resolved?: DiscordInteractionDataResolved
/** The poll object */
poll?: DiscordPoll