diff options
| author | 2019-01-26 23:07:48 +1000 | |
|---|---|---|
| committer | 2019-01-26 23:07:48 +1000 | |
| commit | a7633732cb1ea89cd9ac1882982ec35c7b24f1d1 (patch) | |
| tree | e06994851179de28c2c71276f9bcc591d66268d6 /scripts | |
| parent | Empty commit for redeploy (diff) | |
Fixes hierarchy check when target not a server member.
- Defines the Union type of `discord.Member`, `discord.User` and the custom `proxy_user` function for cleaner converters.
- Adds `isinstance` check for `target` to ensure it's a `discord.Member`. If it wasn't, it means the `Member` part of the Union converter failed so they're definitely not in the guild, so no need to check hierarchy; returns True when they're not a Member.
- Removes now unnecessary `get_member`.
- Adds missing punctuation and param docs to `respect_role_hierarchy` method docstring.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions