fix: Update comment on CreateApplicationCommand.handler (#5187)

The comment change to InteractionCallbackOptions is included as it looks like there was a mistake as "create-guild-application-command-json-params" does not have a with_response parameter
This commit is contained in:
Fleny
2026-07-29 11:12:44 +05:30
committed by GitHub
parent 1d3e23e6d1
commit a0fb820e8a
@@ -71,10 +71,7 @@ export interface InteractionCallbackData {
title?: string;
}
/**
* - https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response-query-string-params
* - https://docs.discord.com/developers/interactions/application-commands#create-guild-application-command-json-params
*/
/** https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response-query-string-params */
export interface InteractionCallbackOptions {
withResponse?: boolean;
}
@@ -159,12 +156,13 @@ export interface CreateApplicationCommand {
type?: ApplicationCommandTypes;
/** Indicates whether the command is age-restricted, defaults to `false` */
nsfw?: boolean;
// Discord seems to have forgot to add this to the docs, however it is in the examples for this feature...
/**
* Determines whether the interaction is handled by the app's interactions handler or by Discord
*
* @remarks
* This can only be set for application commands of type `PRIMARY_ENTRY_POINT` for applications with the `EMBEDDED` flag (i.e. applications that have an Activity).
* Only for `PRIMARY_ENTRY_POINT` commands
*
* This is only available for globally-scoped commands and is not available for guild-scoped commands
*/
handler?: DiscordInteractionEntryPointCommandHandlerType;
}