Skip to content

Commit ab62bc9

Browse files
authored
🐛 fix: remove 10 messages restriction when deleting messages (#22)
1 parent e65d98c commit ab62bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/moderation/repel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const handleDeleteMessages = async ({
161161
Date.now() - message.createdTimestamp < lookBack
162162
);
163163
})
164-
.first(10);
164+
.map((msg) => msg.id);
165165

166166
if (targetMessages.length === 0) {
167167
return;

0 commit comments

Comments
 (0)