function chatInputApplicationCommandMention

declare function chatInputApplicationCommandMention<CommandName extends string, SubcommandGroupName extends string, SubcommandName extends string, CommandId extends Snowflake>(commandName: CommandName, subcommandGroupName: SubcommandGroupName, subcommandName: SubcommandName, commandId: CommandId): `</${CommandName} ${SubcommandGroupName} ${SubcommandName}:${CommandId}>`;

Formats an application command name and id into an application command mention.

Type Parameters

CommandName extends string

SubcommandGroupName extends string

SubcommandName extends string

CommandId extends Snowflake

Parameters

commandName: CommandName
The name of the application command
subcommandGroupOrSubOrId: SubcommandGroupName
The subcommand group name, subcommand name, or application command id
subcommandNameOrId: SubcommandName
The subcommand name or application command id
commandId: CommandId
The id of the application command