Preview environment

function channelMention

declare function channelMention<ChannelId extends Snowflake>(channelId: ChannelId): `<#${ChannelId}>`;

Formats a channel id into a channel mention.

Type Parameters

ChannelId extends Snowflake

Parameters

channelId: ChannelId
The channel id to format