Skip to content

StickerPayload

StickerPayload

Represents a sticker payload.

Kind: global class

StickerPayload.create(payload) ⇒ Promise.<Object>

Creates a payload for an API request.

Kind: static method of StickerPayload
Returns: Promise.<Object> - - The created payload.

ParamTypeDescription
payloadObjectThe payload object.

StickerPayload.resolveData([data]) ⇒ Object

Resolves the data object by validating and formatting its properties.

Kind: static method of StickerPayload
Returns: Object - - The resolved data object with validated and formatted properties.
Throws:

  • RangeError - If the name property is not between 2 and 30 characters.
  • RangeError - If the description property is not between 2 and 100 characters.
  • RangeError - If the tags property is longer than 200 characters.
ParamTypeDescription
[data]ObjectThe data object to resolve.