Skip to content

PrivacyCommand

Defined in: packages/discordjs/src/privacy-command.ts:19

What createPrivacyCommand returns.

data: RESTPostAPIChatInputApplicationCommandsJSONBody

Defined in: packages/discordjs/src/privacy-command.ts:21

Command definition to register with Discord (rest.put(Routes.applicationCommands(id), { body: [data] })).

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.

ChatInputCommandInteraction

Promise<boolean>