fix: reactions in the channel archiver command (#308)
Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
parent
b881245640
commit
d09e0566b3
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ export const ArchiveChannelCmd = channelArchiverCmd({
|
|||
}
|
||||
}
|
||||
|
||||
if (message.reactions && Object.keys(message.reactions).length > 0) {
|
||||
if (message.reactions.cache.size > 0) {
|
||||
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}`);
|
||||
}
|
||||
content += `\n-- Reactions: ${reactionCounts.join(", ")}`;
|
||||
|
|
Loading…
Add table
Reference in a new issue