mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-09 03:07:00 +00:00
Fix NameError in Role.edit
This commit is contained in:
@ -187,7 +187,7 @@ class Role(Hashable):
|
|||||||
roles.append(self.id)
|
roles.append(self.id)
|
||||||
|
|
||||||
payload = [{"id": z[0], "position": z[1]} for z in zip(roles, change_range)]
|
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
|
@asyncio.coroutine
|
||||||
def edit(self, **fields):
|
def edit(self, **fields):
|
||||||
|
Reference in New Issue
Block a user