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
cswimr added the
cog
Aurora
label 2024-10-31 22:02:54 -04:00
cswimr changed title from [Aurora] Custom Moderation Handlers to Custom Moderation Handlers 2024-10-31 22:02:57 -04:00
cswimr added a new dependency 2024-11-06 14:47:53 -05:00
Sign in to join this conversation.
No description provided.