Home > borogove > Reaction > render

Reaction.render() method

Create a new Unicode reaction to send

Signature:

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

Parameters

Parameter Type Description
forText (arg0: string) => T Callback called if this is a textual reaction. Called with the unicode String.
forImage (arg0: string, arg1: string) => T Callback called if this is a custom/image reaction. Called with the name and the URI to the image.

Returns:

T

the return value of the callback