mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
fix: setPosition taking wrong IDs and edit with position 0 breaking (#1989)
* Fix typo in setPosition * Same typo in Role * Fix edit with position breaking when the position was 0 * Eslint * Revert code but fix the position issue
This commit is contained in:
@@ -279,7 +279,7 @@ class Role extends Base {
|
||||
this.guild._sortedRoles(), this.client.api.guilds(this.guild.id).roles, reason)
|
||||
.then(updatedRoles => {
|
||||
this.client.actions.GuildRolesPositionUpdate.handle({
|
||||
guild_id: this.id,
|
||||
guild_id: this.guild.id,
|
||||
channels: updatedRoles,
|
||||
});
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user