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

channelMention

export declare function channelMention<C extends Snowflake>(channelId: C): `<#${C}>`;
export declare function channelMention<C extends Snowflake>(channelId: C): `<#${C}>`;
Formats a channel id into a channel mention.
NameConstraintsOptionalDefaultDescription
CSnowflakeNoThis is inferred by the supplied channel id
NameTypeOptionalDescription
channelIdCNoThe channel id to format