function userMention

export declare function userMention<UserId extends Snowflake>(userId: UserId): `<@${UserId}>`;

Formats a user id into a user mention.

Type Parameters

UserId extends Snowflake

This is inferred by the supplied user id

Parameters

userId: UserId
The user id to format