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

channelLink

export declare function channelLink<C extends Snowflake>(channelId: C): `https://discord.com/channels/@me/${C}`;
export declare function channelLink<C extends Snowflake>(channelId: C): `https://discord.com/channels/@me/${C}`;
Formats a channel link for a direct message channel.
NameConstraintsOptionalDefaultDescription
CSnowflakeNoThis is inferred by the supplied channel id
NameTypeOptionalDescription
channelIdCNoThe channel's id