Skip to content

Commit d09e056

Browse files
BanTheNonsalmeidx
andauthored
fix: reactions in the channel archiver command (#308)
Co-authored-by: Almeida <[email protected]>
1 parent b881245 commit d09e056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/plugins/ChannelArchiver/commands/ArchiveChannelCmd.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export const ArchiveChannelCmd = channelArchiverCmd({
8282
}
8383
}
8484

85-
if (message.reactions && Object.keys(message.reactions).length > 0) {
85+
if (message.reactions.cache.size > 0) {
8686
const reactionCounts: string[] = [];
87-
for (const [emoji, info] of Object.entries(message.reactions)) {
87+
for (const [emoji, info] of message.reactions.cache) {
8888
reactionCounts.push(`${info.count}x ${emoji}`);
8989
}
9090
content += `\n-- Reactions: ${reactionCounts.join(", ")}`;

0 commit comments

Comments
 (0)