You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

messageLink

export declare function messageLink<C extends Snowflake, M extends Snowflake>(channelId: C, messageId: M): `https://discord.com/channels/@me/${C}/${M}`;
export 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
CSnowflakeNoThis is inferred by the supplied channel id
MSnowflakeNoThis is inferred by the supplied message id
NameTypeOptionalDescription
channelIdCNoThe channel's id
messageIdMNoThe message's id