discord.js
Overload 1
Overload 2

function channelLink

declare function channelLink<ChannelId extends Snowflake>(channelId: ChannelId): `https://discord.com/channels/@me/${ChannelId}`;

Formats a channel link for a channel.

Type Parameters

ChannelId extends Snowflake

Parameters

channelId: ChannelId
The id of the channel
VercelCloudflare
Community
DiscordGitHub discussions
Project
discord.jsdiscord.js documentationdiscord-api-types