mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Fix NameError in Role.edit
This commit is contained in:
parent
76e76f2905
commit
96a43fa9e3
@ -187,7 +187,7 @@ class Role(Hashable):
|
||||
roles.append(self.id)
|
||||
|
||||
payload = [{"id": z[0], "position": z[1]} for z in zip(roles, change_range)]
|
||||
yield from http.move_role_position(role.guild.id, payload)
|
||||
yield from http.move_role_position(self.guild.id, payload)
|
||||
|
||||
@asyncio.coroutine
|
||||
def edit(self, **fields):
|
||||
|
Loading…
x
Reference in New Issue
Block a user