scarletcafe / jishaku

A debugging and testing cog for discord.py rewrite bots.
https://jishaku.readthedocs.io/en/latest/
MIT License
541 stars 181 forks source link

Changing jsk command permissions #182

Closed Nzii3 closed 2 years ago

Nzii3 commented 2 years ago

Is it possible to change the permissions of jishaku commands? I have multiple people who contribute to the bot and are trusted and I was wondering if it’s possible to pass other owner_ids only with jishaku?

AbstractUmbra commented 2 years ago

This is automatically done if the Bot application is registered to a Team within the api. You can do this from the developer portal.

If you would like to do this programmatically instead, you must change Bot.owner_id to None and then set Bot.owner_ids to a Sequence of IDs, like a list, tuple or set.

Nzii3 commented 2 years ago

Oh ok, thanks.