Home > borogove > CustomEmojiReaction > render

CustomEmojiReaction.render() method

Render this reaction using either a text or image callback

Signature:

render<T markdown="1">(forText: (arg0: string) => T, forImage: (arg0: string, arg1: string) => T): T;

Parameters

Parameter Type Description
forText (arg0: string) => T called for plain unicode reactions
forImage (arg0: string, arg1: string) => T called for custom emoji reactions with name and image URI

Returns:

T

the value returned by the chosen callback