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

How do I add users to Jishaku? #99

Closed TheUndeadBowman closed 3 years ago

TheUndeadBowman commented 3 years ago

I want my friend to be able to use Jishaku commands, but currently only I am able to do so. How do I add him?

LostLuma commented 3 years ago

Jishaku internally uses the is_owner method on your bot instance to check whether a user can execute commands.

You can overwrite bot owners by passing the owner_ids parameter when constructing the bot, overwriting the is_owner method to add custom logic, or adding someone to the developer team the bot is in (if your bot is not in a team you can create one in the developer portal and transfer your bot to it).

scarletcafe commented 3 years ago

The appropriate means of doing this is described in the documentation under the Changing who can use Jishaku section.