mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
Fix !cleaning more than 100 messages
This commit is contained in:
parent
3d37162d88
commit
c9db9608e6
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ export async function cleanCmd(pluginData: GuildPluginData<UtilityPluginType>, a
|
|||
while (messagesToClean.length < args.count) {
|
||||
const potentialMessages = await targetChannel.messages.fetch({
|
||||
before: beforeId,
|
||||
limit: args.count,
|
||||
limit: Math.min(args.count, 100),
|
||||
});
|
||||
if (potentialMessages.size === 0) break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue