No description
/kruh looked up guild membership via Guild.get_member(), which only reads the local gateway member cache. The bot doesn't request the privileged members intent, and since /kruh can be invoked from DMs (no guild-scoped interaction to populate that guild's cache), the lookup returned None for genuine members, always producing "Are you a member of the 'Kruhy MFF UK' server?" regardless of actual membership. fetch_member() makes a real API call instead of a cache lookup, so it works correctly regardless of intents or where the command was invoked from. Also awaited a second stray self.log() call in the role-assignment failure path that was missed in an earlier fix. |
||
|---|---|---|
| bin | ||
| cobuild | ||
| common | ||
| data.example/kruhobot | ||
| kruhobot | ||
| .gitignore | ||
| requirements.txt | ||
| setup.py | ||