You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

roleMention

export declare function roleMention<C extends Snowflake>(roleId: C): `<@&${C}>`;
export declare function roleMention<C extends Snowflake>(roleId: C): `<@&${C}>`;
Formats a role id into a role mention.
NameConstraintsOptionalDefaultDescription
CSnowflakeNoThis is inferred by the supplied role id
NameTypeOptionalDescription
roleIdCNoThe role id to format