Allow reply-based moderation #4657

Closed
opened 2020-12-05 02:57:43 +01:00 by Zephyrkul · 4 comments
Zephyrkul commented 2020-12-05 02:57:43 +01:00 (Migrated from github.com)

Feature request

Select the type of feature you are requesting:

  • An enhancement to existing cogs

Describe your requested feature

Allow moderation commands in Mod, Mutes, and Warnings to fill in details from the command message's reply, so if a mod replies to a rule-breaking message and says [p]ban 1, it would act like [p]ban <message author> 1
The reason variable could include a quote of the message as well as a link (a link itself wouldn't work since [p]ban and [p]softban can delete the referenced message).

Example:

Screenshot

Example modlog entry

# Feature request <!-- This template is for feature requests. Please fill out the following: --> #### Select the type of feature you are requesting: <!-- To check a box, replace the space between the [] with a x --> - [X] An enhancement to existing cogs #### Describe your requested feature Allow moderation commands in Mod, Mutes, and Warnings to fill in details from the command message's reply, so if a mod replies to a rule-breaking message and says `[p]ban 1`, it would act like `[p]ban <message author> 1` The reason variable could include a quote of the message as well as a link (a link itself wouldn't work since `[p]ban` and `[p]softban` can delete the referenced message). Example: ![Screenshot](https://cdn.discordapp.com/attachments/492050319241379871/784598476905775124/unknown.png) [Example modlog entry](https://cdn.discordapp.com/attachments/492050319241379871/784598647811473478/unknown.png)
Zephyrkul commented 2020-12-05 06:26:43 +01:00 (Migrated from github.com)

Just going to add a note for anyone who tackles this: a reference to the reply can be found with ctx.message.reference, which is a MessageReference object. The message itself, if it is cached, can be found under reference.cached_message (ctx.fetch_message can be used if the message isn't cached).

Just going to add a note for anyone who tackles this: a reference to the reply can be found with `ctx.message.reference`, which is a [MessageReference](https://discordpy.readthedocs.io/en/stable/api.html#discord.MessageReference) object. The message itself, if it is cached, can be found under [`reference.cached_message`](https://discordpy.readthedocs.io/en/stable/api.html#discord.MessageReference.cached_message) (`ctx.fetch_message` can be used if the message isn't cached).
Drapersniper commented 2020-12-05 14:03:33 +01:00 (Migrated from github.com)

I'm reopening this as it's a useful issue to keep track of things

I'm reopening this as it's a useful issue to keep track of things
Drapersniper commented 2020-12-06 12:22:39 +01:00 (Migrated from github.com)

Zeph this is an official warning, do not close this issue again, if you wish to stop getting notified about it unsubscribe.

Zeph this is an official warning, do not close this issue again, if you wish to stop getting notified about it unsubscribe.
Owner

Offene Diskussion bzw. Feature-Wunsch mit geringem Nutzen im Verhältnis zum Aufwand (oder Nischenfall), der seit Langem ohne Ergebnis offen ist. Ich schließe das Issue; bei konkretem Bedarf kann es gern wieder geöffnet werden.


Generated by Claude Code

Offene Diskussion bzw. Feature-Wunsch mit geringem Nutzen im Verhältnis zum Aufwand (oder Nischenfall), der seit Langem ohne Ergebnis offen ist. Ich schließe das Issue; bei konkretem Bedarf kann es gern wieder geöffnet werden. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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
2 participants
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#4657
No description provided.