[Cleanup] after command takes a very long time #5965

Closed
opened 2023-01-07 06:36:41 +01:00 by Injabie3 · 1 comment
Injabie3 commented 2023-01-07 06:36:41 +01:00 (Migrated from github.com)

What Red version are you using?

3.5.0.dev1 (at commit github.com/Cog-Creators/Red-DiscordBot@f13d910f66)

Cog name

Cleanup

Command name

cleanup after

What did you expect to happen?

If the after message ID was close to the most recent message, then the messages should be deleted almost instantly (<5 seconds).

What actually happened?

The messages were deleted after 5 minutes.

How can we reproduce this error?

  1. Choose a channel with an extremely long message history.
  2. Choose a message close to the most recent message, and grab its ID.
  3. Run [p]cleanup after <ID>.
  4. Observe that it takes a long time before the messages are deleted. You may also notice HTTP 429 in the console, but this may be due to other cogs I have loaded.

Anything else?

I am filing this for posterity. This should be addressed when there is a minor version bump for discord.py, namely including the fix for https://github.com/Rapptz/discord.py/pull/9093 .

### What Red version are you using? 3.5.0.dev1 (at commit https://github.com/Cog-Creators/Red-DiscordBot/commit/f13d910f66dbb38cbf546666807f4eec660ae279) ### Cog name Cleanup ### Command name cleanup after ### What did you expect to happen? If the `after` message ID was close to the most recent message, then the messages should be deleted almost instantly (<5 seconds). ### What actually happened? The messages were deleted after 5 minutes. ### How can we reproduce this error? 1. Choose a channel with an extremely long message history. 2. Choose a message close to the most recent message, and grab its ID. 3. Run `[p]cleanup after <ID>`. 4. Observe that it takes a long time before the messages are deleted. You may also notice HTTP 429 in the console, but this may be due to other cogs I have loaded. ### Anything else? I am filing this for posterity. This should be addressed when there is a minor version bump for discord.py, namely including the fix for https://github.com/Rapptz/discord.py/pull/9093 .
Injabie3 commented 2023-01-07 06:47:49 +01:00 (Migrated from github.com)

Installed github.com/Rapptz/discord.py@5600bf1d8b and can confirm it is fixed, can close this out once there is a version bump.

Installed https://github.com/Rapptz/discord.py/commit/5600bf1d8bf33714dca5e78905bf30c0c4b1a652 and can confirm it is fixed, can close this out once there is a version bump.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#5965
No description provided.