3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 10:37:19 +00:00
This commit is contained in:
rubyowo 2025-06-03 11:01:58 +04:00 committed by GitHub
commit 23962e7b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,8 +65,7 @@ export const StarboardReactionAddEvt = starboardEvt({
// Save reaction into the database // Save reaction into the database
await pluginData.state.starboardReactions.createStarboardReaction(msg.id, userId).catch(noop); await pluginData.state.starboardReactions.createStarboardReaction(msg.id, userId).catch(noop);
const reactions = await pluginData.state.starboardReactions.getAllReactionsForMessageId(msg.id); const reactionsCount = meta.args.reaction.count!;
const reactionsCount = reactions.length;
const starboardMessages = await pluginData.state.starboardMessages.getMatchingStarboardMessages( const starboardMessages = await pluginData.state.starboardMessages.getMatchingStarboardMessages(
starboard.channel_id, starboard.channel_id,