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

    Function hyperlink

    • Formats the content and the URL into a masked URL.

      Type Parameters

      • Content extends string

        This is inferred by the supplied content

      Parameters

      • content: Content

        The content to display

      • url: URL

        The URL the content links to

      Returns `[${Content}](${string})`

    • Formats the content and the URL into a masked URL.

      Type Parameters

      • Content extends string

        This is inferred by the supplied content

      • Url extends string

        This is inferred by the supplied URL

      Parameters

      • content: Content

        The content to display

      • url: Url

        The URL the content links to

      Returns `[${Content}](${Url})`

    • Formats the content and the URL into a masked URL with a custom tooltip.

      Type Parameters

      • Content extends string

        This is inferred by the supplied content

      • Title extends string

        This is inferred by the supplied title

      Parameters

      • content: Content

        The content to display

      • url: URL

        The URL the content links to

      • title: Title

        The title shown when hovering on the masked link

      Returns `[${Content}](${string} "${Title}")`

    • Formats the content and the URL into a masked URL with a custom tooltip.

      Type Parameters

      • Content extends string

        This is inferred by the supplied content

      • Url extends string

        This is inferred by the supplied URL

      • Title extends string

        This is inferred by the supplied title

      Parameters

      • content: Content

        The content to display

      • url: Url

        The URL the content links to

      • title: Title

        The title shown when hovering on the masked link

      Returns `[${Content}](${Url} "${Title}")`