Yor.ts | classes/Emoji
Class: Emoji
Hierarchy
-
↳
Emoji
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Emoji(client
, data
): Emoji
Represents an emoji on the Discord platform.
Parameters
Name | Type | Description |
---|---|---|
client | YorClient | The client object. |
data | APIEmoji | The APIEmoji data. |
Returns
Overrides
Defined in
Properties
animated
• Optional
animated: boolean
Defined in
available
• Optional
available: boolean
Defined in
client
• client: YorClient
Inherited from
Defined in
creator
• Optional
creator: User
Defined in
id
• id: string
Defined in
managed
• Optional
managed: boolean
Defined in
name
• name: string
Defined in
raw
• raw: APIEmoji
Defined in
requireColons
• Optional
requireColons: boolean
Defined in
roles
• Optional
roles: string
[]
Defined in
Methods
createdAt
▸ createdAt(): Date
Returns the creation date of the object.
Returns
The creation date of the object.
Defined in
createdTimestamp
▸ createdTimestamp(): number
Returns the created timestamp as a Date object.
Returns
number
The created timestamp.
Defined in
identifier
▸ identifier(): string
The identifier of this emoji, used for message reactions
Returns
string
The identifier string for the object.
Defined in
imageURL
▸ imageURL(options?
): string
Generates the URL of the image with the given options.
Parameters
Name | Type | Description |
---|---|---|
options? | BaseImageURLOptions | Optional options for generating the image URL. |
Returns
string
The generated image URL.
Defined in
toString
▸ toString(): string
Returns a string representation of the emoji
Returns
string
The string representation of the emoji
Defined in
Was this page helpful?