mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
fix(Guild): resolve role id and call existing handler (#3904)
This commit is contained in:
parent
9b5f005394
commit
f387337787
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue