PrivacyCommand
Defined in: packages/discordjs/src/privacy-command.ts:19
What createPrivacyCommand returns.
Properties
Section titled “Properties”data:
RESTPostAPIChatInputApplicationCommandsJSONBody
Defined in: packages/discordjs/src/privacy-command.ts:21
Command definition to register with Discord (rest.put(Routes.applicationCommands(id), { body: [data] })).
Methods
Section titled “Methods”handle()
Section titled “handle()”handle(
interaction):Promise<boolean>
Defined in: packages/discordjs/src/privacy-command.ts:23
Handles the command. Returns false for interactions that aren’t this command. Never throws.
Parameters
Section titled “Parameters”interaction
Section titled “interaction”ChatInputCommandInteraction
Returns
Section titled “Returns”Promise<boolean>