mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 02:25:01 +00:00
fix: fix reactions in the channel archiver command
This commit is contained in:
parent
ff160be1fa
commit
e545b32686
1 changed files with 2 additions and 2 deletions
|
@ -81,9 +81,9 @@ export const ArchiveChannelCmd = channelArchiverCmd({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.reactions && Object.keys(message.reactions).length > 0) {
|
if (message.reactions.cache.size > 0) {
|
||||||
const reactionCounts: string[] = [];
|
const reactionCounts: string[] = [];
|
||||||
for (const [emoji, info] of Object.entries(message.reactions)) {
|
for (const [emoji, info] of message.reactions.cache) {
|
||||||
reactionCounts.push(`${info.count}x ${emoji}`);
|
reactionCounts.push(`${info.count}x ${emoji}`);
|
||||||
}
|
}
|
||||||
content += `\n-- Reactions: ${reactionCounts.join(", ")}`;
|
content += `\n-- Reactions: ${reactionCounts.join(", ")}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue