Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
eYuM-coder committed Oct 13, 2024
1 parent 13e5f88 commit 6b7bd46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/moderation/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = class extends Command {
let totalDeleted = 0;

while (totalDeleted < amount) {
const messagesToDelete = Math.min(101, amount - totalDeleted);
const messagesToDelete = Math.min(100, amount - totalDeleted);
try {
const deletedMessages = await channel.bulkDelete(messagesToDelete, true);
totalDeleted += deletedMessages.size;
Expand Down
2 changes: 1 addition & 1 deletion src/slashCommands/moderation/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = {
let totalDeleted = 0;

while (totalDeleted < amount) {
const messagesToDelete = Math.min(101, amount - totalDeleted);
const messagesToDelete = Math.min(100, amount - totalDeleted);
try {
const deletedMessages = await channel.bulkDelete(messagesToDelete, true);
totalDeleted += deletedMessages.size;
Expand Down

0 comments on commit 6b7bd46

Please sign in to comment.