Skip to content

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

Class: Dice ​

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

This object represents an animated emoji that displays a random value.

Constructors ​

Constructor ​

new Dice(payload): Dice

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

Parameters ​

ParameterType
payloadTelegramDice

Returns ​

Dice

Properties ​

PropertyTypeDefined in
payloadTelegramDicecontexts/index.d.ts:1854

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


emoji ​

Get Signature ​

get emoji(): NonNullable<SendDiceEmoji>

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

Emoji on which the dice throw animation is based

Returns ​

NonNullable<SendDiceEmoji>


value ​

Get Signature ​

get value(): number

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

Value of the dice, 1-6 for 🎲, 🎯 and 🎳 base emoji, 1-5 for 🏀 and ⚽️ base emoji, 1-64 for 🎰 base emoji

Returns ​

number