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

    • channelId: ChannelId

      The channel's id

    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

    • channelId: ChannelId

      The channel's id

    • guildId: GuildId

      The guild's id

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

Generated using TypeDoc