Search...

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