Variable ASSET_BUILDERConst

ASSET_BUILDER: {
    AVATAR_URL: ((hash, size?) => string);
    IMAGE_IN_CHAT: ((hash, size?, width?, height?) => string);
    PROFILE_BANNER: ((hash, size?, width?, height?) => string);
    SERVER_BANNER: ((hash, size?, width?, height?) => string);
    SERVER_EMOJI: ((hash, size?, extension?, width?, height?) => string);
    SERVER_ICON: ((hash, size?) => string);
} = ...

Object containing functions to build Guilded asset URLs

Type declaration

  • AVATAR_URL: ((hash, size?) => string)
      • (hash, size?): string
      • Function to build a Guilded user avatar URL

        Parameters

        • hash: string

          The hash of the user's avatar

        • size: IMG_SIZE = "Medium"

          The size of the avatar (optional)

        Returns string

        A URL string for the user avatar

  • IMAGE_IN_CHAT: ((hash, size?, width?, height?) => string)
      • (hash, size?, width?, height?): string
      • Function to build a Guilded chat message image URL

        Parameters

        • hash: string

          The hash of the image

        • size: string = "Full"

          The size of the image (optional)

        • Optional width: number

          The width of the image (optional)

        • Optional height: number

          The height of the image (optional)

        Returns string

        A URL string for the image in a chat message

  • PROFILE_BANNER: ((hash, size?, width?, height?) => string)
      • (hash, size?, width?, height?): string
      • Function to build a Guilded user profile banner URL

        Parameters

        • hash: string

          The hash of the user's banner

        • size: string = "Hero"

          The size of the banner (optional)

        • Optional width: number

          The width of the banner (optional)

        • Optional height: number

          The height of the banner (optional)

        Returns string

        A URL string for the user profile banner

  • SERVER_BANNER: ((hash, size?, width?, height?) => string)
      • (hash, size?, width?, height?): string
      • Builds a URL for a server banner asset.

        Parameters

        • hash: string

          The hash of the banner asset.

        • size: string = "Hero"

          The size of the banner asset. Default value is "Hero".

        • Optional width: number

          The width of the banner asset. Defaults to undefined.

        • Optional height: number

          The height of the banner asset. Defaults to undefined.

        Returns string

        The URL of the server banner asset.

  • SERVER_EMOJI: ((hash, size?, extension?, width?, height?) => string)
      • (hash, size?, extension?, width?, height?): string
      • Builds a URL for a server emoji asset.

        Parameters

        • hash: string

          The hash of the emoji asset.

        • size: string = "Full"

          The size of the emoji asset. Default value is "Full".

        • extension: "APNG" | "WEBP" = "WEBP"

          The extension of the emoji asset. Default value is "WEBP".

        • Optional width: number

          The width of the emoji asset. Defaults to undefined.

        • Optional height: number

          The height of the emoji asset. Defaults to undefined.

        Returns string

        The URL of the server emoji asset.

  • SERVER_ICON: ((hash, size?) => string)
      • (hash, size?): string
      • Builds a URL for a server icon asset.

        Parameters

        • hash: string

          The hash of the icon asset.

        • size: "Large" | "Medium" | "Small" = "Medium"

          The size of the icon asset. Default value is "Medium".

        Returns string

        The URL of the server icon asset.

Generated using TypeDoc