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:
Almeida
2022-09-03 08:17:06 +01:00
committed by GitHub
parent 0dc68445a1
commit d08a57cadd
3 changed files with 101 additions and 0 deletions

View File

@@ -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