Skip to content

CustomEmoji

Defined in: src/models/customEmoji.model.ts:9

Custom Emoji model class with helper methods.

new CustomEmoji(data): CustomEmoji

Defined in: src/models/customEmoji.model.ts:10

string = ...

string = ...

string = ...

CustomEmoji

BaseModel<NotionCustomEmoji>.constructor

get id(): string

Defined in: src/models/customEmoji.model.ts:28

Returns the custom emoji ID.

string

BaseModel.id


get name(): string

Defined in: src/models/customEmoji.model.ts:35

Returns the custom emoji name.

string


get object(): "custom_emoji"

Defined in: src/models/customEmoji.model.ts:21

Returns “custom_emoji” - the object type.

Note: A custom emoji list item has no object field in the API response. Only the paginated list wrapper has that field. This getter returns a synthetic value, not data from the payload, to meet the BaseModel contract.

"custom_emoji"

BaseModel.object


get url(): string

Defined in: src/models/customEmoji.model.ts:42

Returns the custom emoji’s image URL.

string

toJSON(): object

Defined in: src/models/base.model.ts:20

Returns the raw validated data as a plain object.

object

id: string

name: string

url: string

BaseModel.toJSON