diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 47ffbde8a..bddf90f61 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -1169,7 +1169,7 @@ class Guild extends Base { setRolePositions(rolePositions) { // Make sure rolePositions are prepared for API rolePositions = rolePositions.map(o => ({ - id: o.role, + id: this.roles.resolveID(o.role), position: o.position, })); @@ -1181,7 +1181,7 @@ class Guild extends Base { }) .then( () => - this.client.actions.GuildRolePositionUpdate.handle({ + this.client.actions.GuildRolesPositionUpdate.handle({ guild_id: this.id, roles: rolePositions, }).guild,