Search...

chatInputApplicationCommandMention

export declare function chatInputApplicationCommandMention<N extends string, G extends string, S extends string, I extends Snowflake>(commandName: N, subcommandGroupName: G, subcommandName: S, commandId: I): `</${N} ${G} ${S}:${I}>`;
export declare function chatInputApplicationCommandMention<N extends string, G extends string, S extends string, I extends Snowflake>(commandName: N, subcommandGroupName: G, subcommandName: S, commandId: I): `</${N} ${G} ${S}:${I}>`;
Formats an application command name, subcommand group name, subcommand name, and id into an application command mention.
NameConstraintsOptionalDefaultDescription
NstringNoThis is inferred by the supplied command name
GstringNoThis is inferred by the supplied subcommand group name
SstringNoThis is inferred by the supplied subcommand name
ISnowflakeNoThis is inferred by the supplied command id
NameTypeOptionalDescription
commandNameNNoThe application command name to format
subcommandGroupNameGNoThe subcommand group name to format
subcommandNameSNoThe subcommand name to format
commandIdINoThe application command id to format