formatters
F
applicationDirectory
F
blockQuote
F
bold
F
channelLink
F
channelMention
F
chatInputApplicationCommandMention
F
codeBlock
F
escapeBold
F
escapeBulletedList
F
escapeCodeBlock
F
escapeEscape
F
escapeHeading
F
escapeInlineCode
F
escapeItalic
F
escapeMarkdown
F
escapeMaskedLink
F
escapeNumberedList
F
escapeSpoiler
F
escapeStrikethrough
F
escapeUnderline
F
formatEmoji
F
heading
F
hideLinkEmbed
F
hyperlink
F
inlineCode
F
italic
F
messageLink
F
orderedList
F
quote
F
roleMention
F
spoiler
F
strikethrough
F
subtext
F
time
F
underline
F
underscore
F
unorderedList
F
userMention
E
Faces
E
GuildNavigationMentions
E
HeadingLevel
I
EscapeMarkdownOptions
I
FormatEmojiOptions
T
RecursiveArray
T
TimestampStylesString
V
TimestampStyles
V
version
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