Skip to content

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

@deXxterlab97

Description

@deXxterlab97

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 {}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions