Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FunctionEmoji<Element>

Function for a custom emoji.

Example for stopping the instance from awaiting from further reacts:

 (user, instance) => {
     // Either
     throw 'stopped';

     // or
     return Promise.reject('stopped');

     // will stop the instance from awaiting reacts.
     // Passing an error object will emit the `error` event.
 };

Type parameters

  • Element

Hierarchy

  • FunctionEmoji

Indexable

[emojiNameOrID: string]: function

Function for a custom emoji.

Example for stopping the instance from awaiting from further reacts:

 (user, instance) => {
     // Either
     throw 'stopped';

     // or
     return Promise.reject('stopped');

     // will stop the instance from awaiting reacts.
     // Passing an error object will emit the `error` event.
 };

Generated using TypeDoc