Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

[plugin] add support for custom configuration options

Open Akarys42 opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please elaborate.

I would like to be able to register new configuration options for my plugin that would be compatible with ?plugin.

Describe the solution you'd like

Add a public API to the configuration manager that allows you to register configuration entries on the fly.

Does your solution involve any of the following?

  • [ ] Logviewer
  • [x] New config option

Describe alternatives you've considered

I could have used a config command specific to my plugin, but that sounds a bit lame. Better integrating plugins would be nice.

Who will this benefit?

It would apply to any plugin that may need a configuration option.

Additional Information

No response

Akarys42 avatar Jul 01 '21 13:07 Akarys42

Thanks for your suggestion. It is my understanding that the general consensus is that the overall contributing community takes a bias towards dismissing this as a future feature. Due to the inherent security risks in plugins, it is important that it is clear to the user what exists as a core feature vs added feature. Additionally, it has become common practice over the past 6 years for plugin developers to add their own collections to the bots database for purposes like this, which has the added benefit of allowing plugin developers to implement options in ways that fit best for the features of the plugin and communities they are designed to serve.

On a personal note, there is enough crap in the configuration manager for users to parse through, and keeping it separate is a cleaner solution in most cases.

I am closing as not planned, however, this could be brought up again in the future.

StephenDaDev avatar Dec 02 '25 00:12 StephenDaDev