Sticker

Sticker

Represents an sticker.

Constructor

new Sticker(client, data)

Description:
  • Creates the structure for a sticker

Source:
Parameters:
Name Type Description
client Client

The client instance.

data Object

Sticker data from Discord.

Members

(readonly) format :String

Description:
  • The format of the sticker.

Source:

The format of the sticker.

Type:
  • String

(readonly) formatType :Number

Description:
  • The format type of the sticker.

Source:

The format type of the sticker.

Type:
  • Number

(readonly) id :String

Description:
  • The ID of the sticker.

Source:

The ID of the sticker.

Type:
  • String

(readonly) name :String

Description:
  • The name of the sticker.

Source:

The name of the sticker.

Type:
  • String

(readonly, nullable) previewImageURL :String

Description:
  • The URL to an image of the sticker. Returns NULL if image is a LOTTIE file.

Source:

The URL to an image of the sticker. Returns NULL if image is a LOTTIE file.

Type:
  • String

Methods

toJSON(format) → {Object}

Description:
  • Returns the JSON representation of this structure.

Source:
Parameters:
Name Type Description
format Number

The format to return the data in.

Returns:
Type
Object

toString()

Source: