mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -71,10 +71,7 @@ export interface InteractionCallbackData {
|
|||||||
title?: string;
|
title?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response-query-string-params */
|
||||||
* - 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
|
|
||||||
*/
|
|
||||||
export interface InteractionCallbackOptions {
|
export interface InteractionCallbackOptions {
|
||||||
withResponse?: boolean;
|
withResponse?: boolean;
|
||||||
}
|
}
|
||||||
@@ -159,12 +156,13 @@ export interface CreateApplicationCommand {
|
|||||||
type?: ApplicationCommandTypes;
|
type?: ApplicationCommandTypes;
|
||||||
/** Indicates whether the command is age-restricted, defaults to `false` */
|
/** Indicates whether the command is age-restricted, defaults to `false` */
|
||||||
nsfw?: boolean;
|
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
|
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
||||||
*
|
*
|
||||||
* @remarks
|
* @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;
|
handler?: DiscordInteractionEntryPointCommandHandlerType;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user