[V3 Cleanup] "Cleanup After" command is unresponsive #1947

Closed
opened 2018-07-18 17:33:33 +02:00 by Crossedfall · 4 comments
Crossedfall commented 2018-07-18 17:33:33 +02:00 (Migrated from github.com)

Command bugs

Command name

[p]cleanup after

What cog is this command from?

Cleanup

What were you expecting to happen?

When running the command with a valid message's ID (in this case 469161892099653652), it should remove any messages allowed by Discord's API following said message.

What actually happened?

Nothing. No errors are provided and no messages are deleted. Debug log below:

Jul 18 11:30:26 red python3[3398]: [18/07/2018 11:30] INFO cleanup after 254: Crossedfall([removed]) deleted 0 messages in channel crosssed-bots.

How can we reproduce this issue?

Attempt to delete messages using the command [p]cleanup after <message-ID>

Bot Info

image

# Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `[p]cleanup after` #### What cog is this command from? Cleanup #### What were you expecting to happen? When running the command with a valid message's ID _(in this case 469161892099653652),_ it should remove any messages allowed by Discord's API following said message. #### What actually happened? Nothing. No errors are provided and no messages are deleted. Debug log below: > Jul 18 11:30:26 red python3[3398]: [18/07/2018 11:30] INFO cleanup after 254: Crossedfall([removed]) deleted 0 messages in channel crosssed-bots. #### How can we reproduce this issue? Attempt to delete messages using the command `[p]cleanup after <message-ID>` #### Bot Info ![image](https://user-images.githubusercontent.com/26130695/42891683-90d66d14-8a75-11e8-8c7f-7256177b489b.png)
laggron42 commented 2018-07-18 17:48:49 +02:00 (Migrated from github.com)

I have that problem too

I have that problem too
Brramble commented 2018-07-30 19:22:59 +02:00 (Migrated from github.com)

Can confirm I am also having this issue.

Can confirm I am also having this issue.
mikeshardmind commented 2018-08-05 02:38:45 +02:00 (Migrated from github.com)

There seems to be an issue with the after parameter in general when requesting channel history from the API. I'm not sure what can be done to remedy this, but I will look into it more closely later.

Edit: This also appears to be inconsistent in when it is an issue.

Edit 2: There's an additional logic flaw to be accounted for here, we're short-circuiting out of the collection due to an issue with ordering of messages.

There seems to be an issue with the after parameter in general when requesting channel history from the API. I'm not sure what can be done to remedy this, but I will look into it more closely later. Edit: This also appears to be inconsistent in when it is an issue. Edit 2: There's an additional logic flaw to be accounted for here, we're short-circuiting out of the collection due to an issue with ordering of messages.
Tobotimus commented 2018-08-12 06:47:33 +02:00 (Migrated from github.com)

Hotfix #2004 resolves this. #1980 is a more general solution which will be merged at a later date.

Hotfix #2004 resolves this. #1980 is a more general solution which will be merged at a later date.
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#1947
No description provided.