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

Cogs are loaded globally #3

Open
nelson-lojo opened this issue Mar 31, 2022 · 1 comment
Open

Cogs are loaded globally #3

nelson-lojo opened this issue Mar 31, 2022 · 1 comment
Labels
enhancement New feature or request question Further information is requested wontfix This will not be worked on

Comments

@nelson-lojo
Copy link
Owner

https://github.com/nelcel/GAiD/blob/46dadc633c9308c5a53dd5b782a1c7014e463317/cogs/modularity.py#L57

Cogs should be loaded in a guild-specific context. There should be no influence of the commands run in one server on another.

@nelson-lojo
Copy link
Owner Author

see https://stackoverflow.com/questions/56916693/discord-py-how-can-i-make-cogs-per-server

TL;DR there is no inbuilt way to load cogs on a per-server basis. Instead, there can be an control check before executing each method that verifies that the server is authorized to use that command.

@nelson-lojo nelson-lojo added enhancement New feature or request question Further information is requested wontfix This will not be worked on labels Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant