aboutsummaryrefslogtreecommitdiff
path: root/examples/echo.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-16 00:14:58 -0500
committerRapptz <[email protected]>2015-12-16 00:14:58 -0500
commit7d08a07cb99ee9e6aca5202f43eefc91dbb20dde (patch)
treee9ab8bbc1c23d19d2399ba7dc6f464e91e95b39b /examples/echo.py
parentFix NameError with itertools in client. (diff)
downloaddiscord.py-7d08a07cb99ee9e6aca5202f43eefc91dbb20dde.tar.xz
discord.py-7d08a07cb99ee9e6aca5202f43eefc91dbb20dde.zip
Fix issue with roles being passed in being strings.
Client.add_roles and Client.remove_roles would dispatch to the Client.replace_roles function. However, replace_roles expects Role objects while the dispatching involved string IDs. So as a result this needed another layer of dispatch into a _replace_roles function to do the actual call that all three of them dispatch to.
Diffstat (limited to 'examples/echo.py')
0 files changed, 0 insertions, 0 deletions