Skip to content

GramIO API Reference / @gramio/contexts/dist / ReactionTypeCustomEmoji

Class: ReactionTypeCustomEmoji

Defined in: contexts/index.d.ts:4258

The reaction is based on a custom emoji.

Documentation

Extends

  • ReactionType

Constructors

Constructor

new ReactionTypeCustomEmoji(payload): ReactionTypeCustomEmoji

Defined in: contexts/index.d.ts:4260

Parameters

ParameterType
payloadTelegramReactionTypeCustomEmoji

Returns

ReactionTypeCustomEmoji

Overrides

ReactionType.constructor

Properties

PropertyTypeOverridesDefined in
payloadTelegramReactionTypeCustomEmojiReactionType.payloadcontexts/index.d.ts:4259

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:4302

MDN

Returns

string

Inherited from

ReactionType.[toStringTag]


customEmoji

Get Signature

get customEmoji(): string

Defined in: contexts/index.d.ts:4264

Custom emoji identifier

Returns

string


type

Get Signature

get type(): "custom_emoji"

Defined in: contexts/index.d.ts:4262

Type of the reaction, always custom_emoji

Returns

"custom_emoji"

Methods

is()

is<T>(type): this is ReactionTypeMapping[T]

Defined in: contexts/index.d.ts:4304

Is this reaction type the same as the type?

Type Parameters

Type Parameter
T extends "custom_emoji" | "emoji" | "paid"

Parameters

ParameterType
typeT

Returns

this is ReactionTypeMapping[T]

Inherited from

ReactionType.is