diff options
| author | Zeyla Hellyer <[email protected]> | 2017-10-24 07:52:24 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-24 07:53:22 -0700 |
| commit | d3015a0ff0c0c87888437f991945453b92296875 (patch) | |
| tree | 7b86b582de68960dadf70df14ecb88564c625527 /examples/05_command_framework/src | |
| parent | Add a debug impl for `DispatchError` (diff) | |
| download | serenity-d3015a0ff0c0c87888437f991945453b92296875.tar.xz serenity-d3015a0ff0c0c87888437f991945453b92296875.zip | |
Fix User::has_role
Fix the return value of the function by properly checking whether the
user has the role in the given guild.
The function made the erraneous mistake of simply checking if the given
guild had the role by Id, not whether the _member in the given guild_
had the role by Id.
Diffstat (limited to 'examples/05_command_framework/src')
0 files changed, 0 insertions, 0 deletions