Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: plugin configs #8

Open
zorbyte opened this issue Jun 7, 2021 · 0 comments
Open

feat: plugin configs #8

zorbyte opened this issue Jun 7, 2021 · 0 comments
Assignees
Labels
feat New feature or request lib: core Core library pr: high High priority

Comments

@zorbyte
Copy link
Collaborator

zorbyte commented Jun 7, 2021

When creating a plugin, one of the fields that can be provided in the config is an associated entity for TypeORM.
Instead of having monolithic entities which encapsulate entire guild and user configs, configs will be on a per plugin basis,
and share in common only the various types of snowflakes (user, channel, guild etc.).

Public interfaces for the database which other plugins can also access would be read only and would be part of the plugin class definition.

Local functions for db access that read, write and delete should be their own utility, likely a custom repository.

@zorbyte zorbyte added feat New feature or request pr: high High priority lib: core Core library labels Jun 7, 2021
@zorbyte zorbyte added this to the MVP 1 (v0.1.0) milestone Jun 7, 2021
@zorbyte zorbyte self-assigned this Jun 7, 2021
@zorbyte zorbyte pinned this issue Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request lib: core Core library pr: high High priority
Projects
None yet
Development

No branches or pull requests

1 participant