mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Webpack build for branch master: f4c2d6dfa2
This commit is contained in:
parent
09a4808423
commit
bfd3de9eec
2 changed files with 3 additions and 3 deletions
|
|
@ -3371,11 +3371,11 @@ class Util {
|
|||
.sort((a, b) => a.rawPosition - b.rawPosition || Long.fromString(a.id).sub(Long.fromString(b.id)).toNumber());
|
||||
}
|
||||
|
||||
static setPosition(item, position, relative, sorted, route, handle, reason) {
|
||||
static setPosition(item, position, relative, sorted, route, reason) {
|
||||
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 }).then(handle || (x => x));
|
||||
return route.patch({ data: updatedItems, reason });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue