formatters
F
blockQuote
F
bold
F
channelLink
F
channelMention
F
chatInputApplicationCommandMention
F
codeBlock
F
formatEmoji
F
hideLinkEmbed
F
hyperlink
F
inlineCode
F
italic
F
messageLink
F
quote
F
roleMention
F
spoiler
F
strikethrough
F
time
F
underscore
F
userMention
E
Faces
T
TimestampStylesString
V
TimestampStyles
formatters
Overload 1
Overload 2

function channelLink

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

Formats a channel link for a direct message channel.

Type Parameters

C extends Snowflake

Parameters

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