Preview environment

function userMention

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

Formats a user id into a user mention.

Type Parameters

UserId extends Snowflake

Parameters

userId: UserId
The user id to format