Skip to main content

Interface: RichTextEmoji

Description

An emoji element for use in a rich text message.

Extends

Properties

name

name: string;

Description

Name of emoji, without colons or skin tones, e.g. wave

Defined in

block-kit/block-elements.ts:783


style?

optional style: object;

bold?

optional bold: boolean;
Description

When true, boldens the text in this element. Defaults to false.

code?

optional code: boolean;
Description

When true, the text is preformatted in an inline code style. Defaults to `false.

italic?

optional italic: boolean;
Description

When true, italicizes the text in this element. Defaults to false.

strike?

optional strike: boolean;
Description

When true, strikes through the text in this element. Defaults to false.

Description

A limited style object for styling rich text text elements.

Inherited from

RichTextStyleable.style

Defined in

block-kit/extensions.ts:86


type

type: "emoji";

Description

The type of element. In this case type is always emoji.

Defined in

block-kit/block-elements.ts:779


unicode?

optional unicode: string;

Description

Lowercase hexadecimal Unicode representation of a standard emoji (not for use with custom emoji).

Defined in

block-kit/block-elements.ts:787


url?

optional url: string;

Description

URL of emoji asset. Only used when sharing custom emoji across workspaces.

Defined in

block-kit/block-elements.ts:791