📨Application Command
Prototypes from ApplicationCommand
You can check the Message Formatting to see all available mentions.

Getting a command mention
// discord.js
`</${<ApplicationCommand>.name}:${<ApplicationCommand>.id}>`;
// djs-protofy
<ApplicationCommand>.mention; // `</${commandName}:${commandId}>`
// OR
<ApplicationCommand>.toString(); // `</${commandName}:${commandId}>`
Getting a command mention with sub commands/groups
// discord.js
`</${<ApplicationCommand>.name} ${subCommand}:${<ApplicationCommand>.id}>`
`</${<ApplicationCommand>.name} ${subGroup} ${SubCommand}:${<ApplicationCommand>.id}>`
// djs-protofy
<ApplicationCommand>.getMention(subCommand); // string
// OR
<ApplicationCommand>.getMention(subGroup, subCommand); // string
<ApplicationCommand>.toString(subCommand); // `</${commandName} ${subCommand}:${commandId}>`
Last updated