> ## Documentation Index
> Fetch the complete documentation index at: https://yor.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Yor.ts | classes/Emoji

[yor.ts](../README) / [Exports](../modules) / Emoji

# Class: Emoji

## Hierarchy

* [`Base`](Base)

  ↳ **`Emoji`**

## Table of contents

### Constructors

* [constructor](Emoji#constructor)

### Properties

* [animated](Emoji#animated)
* [available](Emoji#available)
* [client](Emoji#client)
* [creator](Emoji#creator)
* [id](Emoji#id)
* [managed](Emoji#managed)
* [name](Emoji#name)
* [raw](Emoji#raw)
* [requireColons](Emoji#requirecolons)
* [roles](Emoji#roles)

### Methods

* [createdAt](Emoji#createdat)
* [createdTimestamp](Emoji#createdtimestamp)
* [identifier](Emoji#identifier)
* [imageURL](Emoji#imageurl)
* [toString](Emoji#tostring)

## Constructors

### constructor

• **new Emoji**(`client`, `data`): [`Emoji`](Emoji)

Represents an emoji on the Discord platform.

#### Parameters

| Name     | Type                     | Description        |
| :------- | :----------------------- | :----------------- |
| `client` | [`YorClient`](YorClient) | The client object. |
| `data`   | `APIEmoji`               | The APIEmoji data. |

#### Returns

[`Emoji`](Emoji)

#### Overrides

[Base](Base).[constructor](Base#constructor)

#### Defined in

[src/structures/Emoji.ts:31](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L31)

## Properties

### animated

• `Optional` **animated**: `boolean`

#### Defined in

[src/structures/Emoji.ts:20](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L20)

***

### available

• `Optional` **available**: `boolean`

#### Defined in

[src/structures/Emoji.ts:21](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L21)

***

### client

• **client**: [`YorClient`](YorClient)

#### Inherited from

[Base](Base).[client](Base#client)

#### Defined in

[src/structures/Base.ts:4](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Base.ts#L4)

***

### creator

• `Optional` **creator**: [`User`](User)

#### Defined in

[src/structures/Emoji.ts:17](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L17)

***

### id

• **id**: `string`

#### Defined in

[src/structures/Emoji.ts:14](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L14)

***

### managed

• `Optional` **managed**: `boolean`

#### Defined in

[src/structures/Emoji.ts:19](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L19)

***

### name

• **name**: `string`

#### Defined in

[src/structures/Emoji.ts:15](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L15)

***

### raw

• **raw**: `APIEmoji`

#### Defined in

[src/structures/Emoji.ts:13](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L13)

***

### requireColons

• `Optional` **requireColons**: `boolean`

#### Defined in

[src/structures/Emoji.ts:18](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L18)

***

### roles

• `Optional` **roles**: `string`\[]

#### Defined in

[src/structures/Emoji.ts:16](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L16)

## Methods

### createdAt

▸ **createdAt**(): [`Date`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date)

Returns the creation date of the object.

#### Returns

[`Date`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date)

The creation date of the object.

#### Defined in

[src/structures/Emoji.ts:95](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L95)

***

### createdTimestamp

▸ **createdTimestamp**(): `number`

Returns the created timestamp as a Date object.

#### Returns

`number`

The created timestamp.

#### Defined in

[src/structures/Emoji.ts:81](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L81)

***

### identifier

▸ **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:52](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L52)

***

### 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

[src/structures/Emoji.ts:63](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L63)

***

### toString

▸ **toString**(): `string`

Returns a string representation of the emoji

#### Returns

`string`

The string representation of the emoji

#### Defined in

[src/structures/Emoji.ts:72](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Emoji.ts#L72)
