Class CDNUtils

Methods for constructing CDN links.

See

Discord API Reference

Hierarchy

  • CDNUtils

Constructors

Methods

  • A custom emoji.

    Parameters

    • id: string

      The emoji's ID.

    • options: CDNImageOptions<"jpeg" | "png" | "webp" | "gif" | "jpg"> = {}

      Image options.

    Returns string

  • A guild member's avatar.

    Parameters

    • guildId: string

      The guild's ID.

    • memberId: string

      The member's ID.

    • hash: string
    • options: CDNImageOptions<"jpeg" | "png" | "webp" | "gif" | "jpg"> = {}

      Image options.

    Returns string

  • A guild member's banner.

    Parameters

    • guildId: string

      The guild's ID.

    • memberId: string

      The member's ID.

    • hash: string
    • options: CDNImageOptions<"jpeg" | "png" | "webp" | "gif" | "jpg"> = {}

      Image options.

    Returns string

  • A scheduled event's cover image.

    Parameters

    • id: string

      The event's ID.

    • hash: string
    • options: CDNImageOptions<"jpeg" | "png" | "webp" | "jpg"> = {}

      Image options.

    Returns string

  • A sticker.

    Parameters

    • id: string

      The sticker's ID.

    • options: Omit<CDNImageOptions<"json" | "png">, "size"> = {}

      Image options.

    Returns string

  • A sticker pack's banner.

    Parameters

    • id: string

      The sticker pack's ID.

    • options: CDNImageOptions<"jpeg" | "png" | "webp" | "jpg"> = {}

      Image options.

    Returns string

Generated using TypeDoc