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

type check config/permissions files #7

Open
HeladoDeBrownie opened this issue Feb 18, 2022 · 1 comment
Open

type check config/permissions files #7

HeladoDeBrownie opened this issue Feb 18, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@HeladoDeBrownie
Copy link
Member

the bot should refuse to load if any config fields are not of a desired type. for example, role id fields should not silently accept numbers

@HeladoDeBrownie HeladoDeBrownie added the bug Something isn't working label Feb 18, 2022
@HeladoDeBrownie HeladoDeBrownie added this to the Setup Polish milestone Mar 20, 2022
@HeladoDeBrownie
Copy link
Member Author

this can be done by using a function to guard loading of config properties, where the function is required to be passed a type / type predicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant