diff --git a/lib/structures/Application.ts b/lib/structures/Application.ts index c4fcca9e..85cd4255 100644 --- a/lib/structures/Application.ts +++ b/lib/structures/Application.ts @@ -18,7 +18,7 @@ export default class Application extends ClientApplication { customInstallURL?: string; /** The description of the application. */ description: string; - /** If this application is a game sold on Discord, the guild to which it has been linked. This will only be present if recieved via `/applications/@me` {@link REST/Miscellaneous.getApplication | Miscellaneous#getApplication}). */ + /** If this application is a game sold on Discord, the guild to which it has been linked. This will only be present if recieved via {@link REST/Applications.getCurrent | `/applications/@me`}. */ guild: OAuthGuild | null; /** If this application is a game sold on Discord, the ID of the guild to which it has been linked. */ guildID: string | null; diff --git a/lib/structures/Message.ts b/lib/structures/Message.ts index 2d7dfcdc..74df68f2 100644 --- a/lib/structures/Message.ts +++ b/lib/structures/Message.ts @@ -242,6 +242,7 @@ export default class Message; type: InteractionTypes; @@ -766,11 +767,17 @@ export interface RawMessageInteractionMetadata { } export interface MessageInteractionMetadata { + /** Details about the authorizing user or server for the installation(s) relevant to the interaction. See [Discord's docs](https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-authorizing-integration-owners-object) for more information. */ authorizingIntegrationOwners: AuthorizingIntegrationOwners; id: string; + /** The ID of the message that contained interactive component, present only on messages created from component interactions */ interactedMessageID?: string; + /** Name of the command, including subcommands and subcommand groups, present only on application command interactions. */ + name?: string; + /** The ID of the original response message, present only on follow-up messages. */ originalResponseMessageID?: string; - triggeringInteractionMetadata?: Omit; + /** Metadata for the interaction that was used to open the modal, present only on modal submit interactions. */ + triggeringInteractionMetadata?: Omit; type: InteractionTypes; user: User | Uncached; } diff --git a/lib/types/gateway.d.ts b/lib/types/gateway.d.ts index 6405e98c..fc660e48 100644 --- a/lib/types/gateway.d.ts +++ b/lib/types/gateway.d.ts @@ -113,7 +113,7 @@ interface GatewayOptions { */ reconnectDelay?: ReconnectDelayFunction; /** - * If a check should be made before connecting, which will remove any disallowed intents. This requires making a request to {@link REST/Miscellaneous.getApplication | `/applications/@me`}. Any removed intents will be emitted via the `warn` event. + * If a check should be made before connecting, which will remove any disallowed intents. This requires making a request to {@link REST/MApplications.getCurrent | `/applications/@me`}. Any removed intents will be emitted via the `warn` event. * @defaultValue false */ removeDisallowedIntents?: boolean; diff --git a/lib/types/json.d.ts b/lib/types/json.d.ts index 336c833a..29f340ba 100644 --- a/lib/types/json.d.ts +++ b/lib/types/json.d.ts @@ -443,6 +443,7 @@ export interface JSONMessage extends JSONBase { authorizingIntegrationOwners: AuthorizingIntegrationOwners; id: string; interactedMessageID?: string; + name?: string; originalResponseMessageID?: string; triggeringInteractionMetadata?: { authorizingIntegrationOwners: AuthorizingIntegrationOwners;