[Aurora] Custom Moderation Handlers #31

Open
opened 2024-07-05 18:44:34 -04:00 by cswimr · 0 comments
Owner

What cog is your feature request for?

Aurora

Currently, there's no good way to hook into all of Aurora's functionality to add your own moderation commands and whatnot.

Describe the solution you'd like

I aim to fix this problem by having the following structure:

  • ModerationType (Class)
    • handler() (Method)
    • expiry_handler() (Method, optional)

In addition, this means that all handling of moderations will be delegated to a moderate() method somewhere, need to decide where to put that before continuing - maybe in the Moderation object?

I'll also need some way to retrieve a list of registered moderation types, and a public API to register said moderation types.

Describe alternatives you've considered

No response

Screenshots

No response

Additional context

No response

### What cog is your feature request for? Aurora ### Is your feature request related to a problem? Please describe. Currently, there's no good way to hook into all of Aurora's functionality to add your own moderation commands and whatnot. ### Describe the solution you'd like I aim to fix this problem by having the following structure: - `ModerationType` (Class) - `handler()` (Method) - `expiry_handler()` (Method, optional) In addition, this means that all handling of moderations will be delegated to a `moderate()` method somewhere, need to decide where to put that before continuing - maybe in the `Moderation` object? I'll also need some way to retrieve a list of registered moderation types, and a public API to register said moderation types. ### Describe alternatives you've considered _No response_ ### Screenshots _No response_ ### Additional context _No response_
cswimr added the
enhancement
label 2024-07-05 18:44:34 -04:00
cswimr self-assigned this 2024-07-05 18:44:34 -04:00
cswimr added this to the Aurora - To-Do project 2024-07-05 18:44:34 -04:00
Sign in to join this conversation.
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: cswimr/SeaCogs#31
No description provided.