GramIO API Reference / @gramio/contexts/dist / ReactionTypeCustomEmoji
Class: ReactionTypeCustomEmoji
Defined in: contexts/index.d.ts:4258
The reaction is based on a custom emoji.
Extends
ReactionType
Constructors
Constructor
new ReactionTypeCustomEmoji(
payload):ReactionTypeCustomEmoji
Defined in: contexts/index.d.ts:4260
Parameters
| Parameter | Type |
|---|---|
payload | TelegramReactionTypeCustomEmoji |
Returns
ReactionTypeCustomEmoji
Overrides
ReactionType.constructor
Properties
| Property | Type | Overrides | Defined in |
|---|---|---|---|
payload | TelegramReactionTypeCustomEmoji | ReactionType.payload | contexts/index.d.ts:4259 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:4302
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
| Parameter | Type |
|---|---|
type | T |
Returns
this is ReactionTypeMapping[T]
Inherited from
ReactionType.is