fix: refresh complete reaction state
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { EmbedBuilder, MessageReaction, PartialMessageReaction } from "discord.js";
|
||||
import { EmbedBuilder, Message } from "discord.js";
|
||||
|
||||
export default function awardEmbed(
|
||||
reaction: MessageReaction | PartialMessageReaction,
|
||||
message: Message,
|
||||
score: number,
|
||||
): EmbedBuilder {
|
||||
const message = reaction.message;
|
||||
const reactionSummary = message.reactions.cache
|
||||
.map((item) => `${item.emoji} ×${item.count}`)
|
||||
.join(" · ");
|
||||
|
||||
Reference in New Issue
Block a user