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

userMention

export declare function userMention<C extends Snowflake>(userId: C): `<@${C}>`;
export declare function userMention<C extends Snowflake>(userId: C): `<@${C}>`;
Formats a user id into a user mention.
NameConstraintsOptionalDefaultDescription
CSnowflakeNoThis is inferred by the supplied user id
NameTypeOptionalDescription
userIdCNoThe user id to format