Search...

messageLink

declare function messageLink<C extends Snowflake, M extends Snowflake>(channelId: C, messageId: M): `https://discord.com/channels/@me/${C}/${M}`;
declare function messageLink<C extends Snowflake, M extends Snowflake>(channelId: C, messageId: M): `https://discord.com/channels/@me/${C}/${M}`;
Formats a message link for a direct message channel.
NameConstraintsOptionalDefaultDescription
CSnowflakeNoNone
MSnowflakeNoNone
NameTypeOptionalDescription
channelIdCNoThe channel's id
messageIdMNoThe message's id