mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
feat: add chatInputApplicationCommandMention formatter (#8546)
feat: add `chatInputApplicationCommandMention()` formatter Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,17 @@ const {
|
||||
userMention,
|
||||
} = require('@discordjs/builders');
|
||||
|
||||
/**
|
||||
* Formats an application command name and id into an application command mention.
|
||||
* @method chatInputApplicationCommandMention
|
||||
* @param {string} commandName The name of the application command
|
||||
* @param {string|Snowflake} subcommandGroupOrSubOrId
|
||||
* The subcommand group name, subcommand name, or application command id
|
||||
* @param {?(string|Snowflake)} [subcommandNameOrId] The subcommand name or application command id
|
||||
* @param {?string} [commandId] The id of the application command
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Wraps the content inside a code block with an optional language.
|
||||
* @method codeBlock
|
||||
|
||||
Reference in New Issue
Block a user