mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix(setPosition): rawPosition never getting updated when setPosition was called (#2006)
* Fix setPosition issue The rawPositions were never updated from using setPosition, now they are. * Fix bubbling issue Also, yes. It took me 8 hours to get back home. Deal with it :D * Watch your copy paste
This commit is contained in:
@@ -306,7 +306,7 @@ class Util {
|
||||
let updatedItems = sorted.array();
|
||||
Util.moveElementInArray(updatedItems, item, position, relative);
|
||||
updatedItems = updatedItems.map((r, i) => ({ id: r.id, position: i }));
|
||||
return route.patch({ data: updatedItems, reason });
|
||||
return route.patch({ data: updatedItems, reason }).then(() => updatedItems);
|
||||
}
|
||||
|
||||
static basename(path, ext) {
|
||||
|
||||
Reference in New Issue
Block a user