Skip to content

Function: withReactor() ​

ts
function withReactor(reactions, change): IMessageReaction[];

Defined in: messageEvents.ts:236

someone's reaction counted; the viewer's own through me, anyone's through the names shown

Parameters ​

ParameterType
reactionsIMessageReaction[]
change{ customEmoji: ICustomEmoji | null; emoji: string | null; emojiKey: string; isMe: boolean; user: Pick<IUserSimple, "id" | "username">; }
change.customEmojiICustomEmoji | null
change.emojistring | null
change.emojiKeystring
change.isMeboolean
change.userPick<IUserSimple, "id" | "username">

Returns ​

IMessageReaction[]

Released under the GNU Affero General Public License v3.0.