Function messageLink

  • Formats a message link for a direct message channel.

    Type Parameters

    • ChannelId extends string

      This is inferred by the supplied channel id

    • MessageId extends string

      This is inferred by the supplied message id

    Parameters

    • channelId: ChannelId

      The channel's id

    • messageId: MessageId

      The message's id

    Returns `https://discord.com/channels/@me/${ChannelId}/${MessageId}`

  • Formats a message link for a guild channel.

    Type Parameters

    • ChannelId extends string

      This is inferred by the supplied channel id

    • MessageId extends string

      This is inferred by the supplied message id

    • GuildId extends string

      This is inferred by the supplied guild id

    Parameters

    • channelId: ChannelId

      The channel's id

    • messageId: MessageId

      The message's id

    • guildId: GuildId

      The guild's id

    Returns `https://discord.com/channels/${GuildId}/${ChannelId}/${MessageId}`

Generated using TypeDoc