[Mod] Config setting for days of messages to delete when banning for mention spam #4330

Manually merged
Flame442 merged 0 commits from Flame442/mention-spam into V3/develop 2026-11-21 16:09:19 +01:00
Flame442 commented 2020-08-22 00:06:06 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Instead of using the dpy default of 1 day, use the setting configured for Mod.

### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes Instead of using the dpy default of 1 day, use the setting configured for Mod.
palmtree5 (Migrated from github.com) reviewed 2020-08-22 00:06:06 +02:00
Twentysix26 commented 2020-08-22 10:10:05 +02:00 (Migrated from github.com)

I have mixed feelings about this change: for example in my use case I like default [p]ban days at 0, since I believe that preserving history is important unless it contains NSFW or similar undesirable content. However, for something like mention spam I wouldn't care as much, as it's usually done by raiders and cleaning the mess up in this case is good (also due to multiple people being pinged).
Those two different mechanics using the same setting is problematic, since it would not allow me to customize it how I want. Perhaps a separate setting would be better?

I have mixed feelings about this change: for example in my use case I like default [p]ban days at 0, since I believe that preserving history is important unless it contains NSFW or similar undesirable content. However, for something like mention spam I wouldn't care as much, as it's usually done by raiders and cleaning the mess up in this case is good (also due to multiple people being pinged). Those two different mechanics using the same setting is problematic, since it would not allow me to customize it how I want. Perhaps a separate setting would be better?
Flame442 commented 2022-10-07 21:04:53 +02:00 (Migrated from github.com)

This PR has been updated to use a new config value for the number of days worth of messages to delete when banning for mention spam rather than piggybacking on the existing delete_days setting.

This PR has been updated to use a new config value for the number of days worth of messages to delete when banning for mention spam rather than piggybacking on the existing `delete_days` setting.
Jackenmen commented 2022-12-29 06:56:30 +01:00 (Migrated from github.com)

This should probably support the new delete_message_seconds rather than just the day count but the specifics of how this should be approached depend at least partially on #5922 so I think this PR should be held off until a resolution for that issue is decided.

This should probably support the new `delete_message_seconds` rather than just the day count *but* the specifics of how this should be approached depend at least partially on #5922 so I think this PR should be held off until a resolution for that issue is decided.
Mrcoolgamer11 manually merged commit 2ba344ec62 into V3/develop 2026-11-21 16:09:19 +01:00
Sign in to join this conversation.
No reviewers
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!4330
No description provided.