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

    Function formatEmoji

    • Formats a non-animated emoji id into a fully qualified emoji identifier.

      Type Parameters

      • EmojiId extends string

        This is inferred by the supplied emoji id

      Parameters

      • emojiId: EmojiId

        The emoji id to format

      • Optionalanimated: false

      Returns `<:_:${EmojiId}>`

    • Formats an animated emoji id into a fully qualified emoji identifier.

      Type Parameters

      • EmojiId extends string

        This is inferred by the supplied emoji id

      Parameters

      • emojiId: EmojiId

        The emoji id to format

      • Optionalanimated: true

        Whether the emoji is animated

      Returns `<a:_:${EmojiId}>`

    • Formats an emoji id into a fully qualified emoji identifier.

      Type Parameters

      • EmojiId extends string

        This is inferred by the supplied emoji id

      Parameters

      • emojiId: EmojiId

        The emoji id to format

      • Optionalanimated: boolean

        Whether the emoji is animated

      Returns `<:_:${EmojiId}>` | `<a:_:${EmojiId}>`

    • Formats a non-animated emoji id and name into a fully qualified emoji identifier.

      Type Parameters

      • EmojiId extends string

        This is inferred by the supplied emoji id

      • EmojiName extends string

        This is inferred by the supplied name

      Parameters

      Returns `<a:${EmojiName}:${EmojiId}>`

    • Formats an animated emoji id and name into a fully qualified emoji identifier.

      Type Parameters

      • EmojiId extends string

        This is inferred by the supplied emoji id

      • EmojiName extends string

        This is inferred by the supplied name

      Parameters

      Returns `<:${EmojiName}:${EmojiId}>`

    • Formats an emoji id and name into a fully qualified emoji identifier.

      Type Parameters

      • EmojiId extends string

        This is inferred by the supplied emoji id

      • EmojiName extends string

        This is inferred by the supplied emoji name

      Parameters

      Returns `<:${EmojiName}:${EmojiId}>` | `<a:${EmojiName}:${EmojiId}>`