3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: starboard thresholds for different starboards

https://discord.com/channels/473085256233123841/534722948246929429/1332188118031536172
This commit is contained in:
Ruby 2025-01-25 22:14:50 +01:00
parent eb5fda8d19
commit 21f57ad40a
No known key found for this signature in database
GPG key ID: E0BDFAF7AE9E0531

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,