Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chatchart] Max numbers of edits to messages older than 1 hour #302

Open
deXxterlab97 opened this issue Mar 27, 2023 · 0 comments
Open

[Chatchart] Max numbers of edits to messages older than 1 hour #302

deXxterlab97 opened this issue Mar 27, 2023 · 0 comments

Comments

@deXxterlab97
Copy link

Trying to process 380k messages

Traceback:

Exception in command 'chatchart'
Traceback (most recent call last):
  File "/home/dex/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/dex/.local/share/Red-DiscordBot/data/babu97/cogs/CogManager/cogs/chatchart/chatchart.py", line 200, in chatchart
    history = await self.fetch_channel_history(channel, loading_message, messages)
  File "/home/dex/.local/share/Red-DiscordBot/data/babu97/cogs/CogManager/cogs/chatchart/chatchart.py", line 161, in fetch_channel_history
    await animation_message.edit(embed=new_embed)
  File "/home/dex/redenv/lib/python3.9/site-packages/discord/message.py", line 1111, in edit
    data = await self._state.http.edit_message(self.channel.id, self.id, **fields)
  File "/home/dex/redenv/lib/python3.9/site-packages/discord/http.py", line 267, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 30046): Maximum number of edits to messages older than 1 hour reached {}.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/dex/redenv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/home/dex/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/dex/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 429 Too Many Requests (error code: 30046): Maximum number of edits to messages older than 1 hour reached {}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant