Skip to main content
Version: 0.6.4

Class: Emoji

The base class for all structures.

Extends​

Constructors​

Constructor​

new Emoji(client, data): Emoji

Parameters​

ParameterType
clientClient
data{ }

Returns​

Emoji

Overrides​

Base.constructor

Properties​

animated​

animated: boolean = false


cachedAt​

cachedAt: number

Inherited from​

Base.cachedAt


client​

protected readonly client: Client

Inherited from​

Base.client


creatorId​

creatorId: string


id​

readonly id: string

Inherited from​

Base.id


name​

name: string


nsfw​

nsfw: boolean = false


parent​

parent: EmojiParent

Methods​

_clone()​

_clone(): this

Helper to quickly clone a structure

Returns​

this

Inherited from​

Base._clone


_patch()​

_patch(data): void

Parameters​

ParameterType
data{ }

Returns​

void


equals()​

equals(other): boolean

Compares this object with another to see if they represent the same entity.

Parameters​

ParameterType
otherstring | Base

Returns​

boolean

Inherited from​

Base.equals


toString()​

toString(): string

Returns the UUID string when the object is cast to a string.

Returns​

string

Inherited from​

Base.toString