Unload modlog should disable modlog #4067
Labels
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
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#4067
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What were you trying to do?
Unload to disable modlog
What were you expecting to happen?
Unloading modlog disabled modlog
What actually happened?
Unloading modlog does not disable modlog
How can we reproduce this issue?
Unload modlog with an active channel set.
Modlog cog and modlog api are two different things. The former is an interface for configuration that anyone could make a different looking one.
If you are referring to the API. Then perhaps a setting to disable the api. But that can get messy as cogs atm May depend on it. And assume it's always avaliable, so such a change would end up being breaking, unless the silence calls to the api when it's disable. But that's obfuscating the behaviour
I don't see this being beneficial. Properly made cogs will provide an option to disable modlog entries or you can do so by disabling the casetype via the modlog cog.
This has never gone anywhere but I want to bring up again moving commands for changing API settings out of the cogs and putting them directly in core commands. To be specific: moving
[p]modlogsetfrommodlogcog to core commands (possibly to[p]set modlog), moving[p]banksetout ofbankcog (possibly to[p]set bank), moving[p]economyset registeramount(and probably also[p]bank resetand[p]bank prune) to[p]bankset/[p]set bank. IMO, they shouldn't be part of any cog since they allow to change settings of a core API, same as[p]autoimmune,[p]whitelist, or[p]embedsetthat also allow users to change API settings.I like that, however that would leave some cogs as relatively useless. No? E.g. for modlog there's not much more than the settings and the viewing of individual cases which at least makes me think it could be moved to core entirely. If that happens though, core ends up being massive again, so I can understand why the categorization and split into multiple cogs was made.
ModLog would still have
[p]casesfor,[p]case, and[p]reasoncommands, Bank cog would be removed since there would be nothing in it, and Economy cog still has plenty to offer.I'm specifically only talking about command that allow to change API's settings, nothing else.
This isn't a bug, and I don't think it's something that should be changed either. As a documented and supported API that cogs use, it isn't intended to be replaced, and the output of cases to a channel can be controlled.
Right, I forgot about the clue of the issue... I don't think the API should be disableable either, I just wanted
to use this as an occasion to propose (again) something that would make more sense for what ModLog really is - a core API.
+1 from me on moving the API management commands to core_commands, but I think it needs to happen on a breaking release since this is going to break people's usage of permissions, also makes it clearer that modlog isn't something that can be disabled.
That's the crux of this issue, I expected the unload to disable it as this is common behaviour with most cogs.
It being hidden inside the cog and unloading the cog hides the options to disable it.
As in, clearing the modlog channel to globally disable.
I made #4128 to express the idea of moving commands for API settings out of cogs. Does anyone involved in this issue has anything against closing this issue in favor of #4128?
Nope, lgtm
Closing in favour of #4128.