Discord.https - v3.0.16
    Preparing search index...

    Function channelLink

    • Formats a channel link for a direct message channel.

      Type Parameters

      • ChannelId extends string

        This is inferred by the supplied channel id

      Parameters

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

    • Formats a channel link for a guild channel.

      Type Parameters

      • ChannelId extends string

        This is inferred by the supplied channel id

      • GuildId extends string

        This is inferred by the supplied guild id

      Parameters

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