formatters
Overload 1
Overload 2

function channelLink

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

Formats a channel link for a direct message channel.

Type Parameters

ChannelId extends Snowflake

This is inferred by the supplied channel id

Parameters

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