diff options
| author | Michael H <[email protected]> | 2021-05-27 22:31:49 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-27 22:31:49 -0400 |
| commit | 1bf782fcb5168504ccf487641a3eb79f99bf341f (patch) | |
| tree | 354fd58f15c177099dcd40bed7639f601be9b6e0 /discord/user.py | |
| parent | Add warning for comparing with role positioning (diff) | |
| download | discord.py-1bf782fcb5168504ccf487641a3eb79f99bf341f.tar.xz discord.py-1bf782fcb5168504ccf487641a3eb79f99bf341f.zip | |
Add Member.get_role
Adds an efficient way to check if a member has a role by ID.
This is done in a way consistent with the existing user API of the
library.
The more debated Member.has_role_id/has_role is intentionally not
included for review at this time given the heavy bikeshedding of it.
Diffstat (limited to 'discord/user.py')
0 files changed, 0 insertions, 0 deletions