mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 10:37:19 +00:00
Merge 21f57ad40a
into 3ef89246ba
This commit is contained in:
commit
23962e7b57
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue