Class: Emoji
Hierarchy
-
Base↳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
Emoji
Overrides
Base.constructorDefined in
src/structures/Emoji.ts:31Properties
animated
•Optional animated: boolean
Defined in
src/structures/Emoji.ts:20available
•Optional available: boolean
Defined in
src/structures/Emoji.ts:21client
• client:YorClient
Inherited from
Base.clientDefined in
src/structures/Base.ts:4creator
•Optional creator: User
Defined in
src/structures/Emoji.ts:17id
• id:string
Defined in
src/structures/Emoji.ts:14managed
•Optional managed: boolean
Defined in
src/structures/Emoji.ts:19name
• name:string
Defined in
src/structures/Emoji.ts:15raw
• raw:APIEmoji
Defined in
src/structures/Emoji.ts:13requireColons
•Optional requireColons: boolean
Defined in
src/structures/Emoji.ts:18roles
•Optional roles: string[]
Defined in
src/structures/Emoji.ts:16Methods
createdAt
▸ createdAt():Date
Returns the creation date of the object.
Returns
Date
The creation date of the object.
Defined in
src/structures/Emoji.ts:95createdTimestamp
▸ createdTimestamp():number
Returns the created timestamp as a Date object.
Returns
number
The created timestamp.
Defined in
src/structures/Emoji.ts:81identifier
▸ identifier():string
The identifier of this emoji, used for message reactions
Returns
string
The identifier string for the object.
Defined in
src/structures/Emoji.ts:52imageURL
▸ 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
src/structures/Emoji.ts:63toString
▸ toString():string
Returns a string representation of the emoji
Returns
string
The string representation of the emoji
