TrojanerHD / TrojanerBot

My discord bot
MIT License
4 stars 2 forks source link

Permissions do not work #6

Closed TrojanerHD closed 3 years ago

TrojanerHD commented 3 years ago

Despite me having permissions the bot forbids me to execute !bye

TrojanerHD commented 3 years ago

It does work sometimes. Maybe because the roles are not cached?

TrojanerHD commented 3 years ago

At bot startup, the bot fetches the roles once and writes them into the cache. In order to get updated roles you currently have to restart the bot. Thus, fetching roles every time the permissions get checked is required

TrojanerHD commented 3 years ago

After some testing this bug was not reproducible at all. After renaming the role the bot instantly applies the correct permissions to the user