mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
ESLint warnings (#852)
This commit is contained in:
parent
c9dbf1f7f0
commit
30105536a6
2 changed files with 1 additions and 2 deletions
|
|
@ -142,7 +142,6 @@ class VoiceWebSocket extends EventEmitter {
|
|||
* Called whenever the connection to the WebSocket Server is lost
|
||||
*/
|
||||
onClose() {
|
||||
// TODO see if the connection is open before reconnecting
|
||||
if (!this.dead) this.client.setTimeout(this.connect.bind(this), this.attempts * 1000);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -650,7 +650,7 @@ class Guild {
|
|||
|
||||
const updatedRoles = this.roles.array().map(r => ({
|
||||
id: r.id,
|
||||
position: r.id === role ? position : (r.position < position ? r.position : r.position + 1),
|
||||
position: r.id === role ? position : r.position < position ? r.position : r.position + 1,
|
||||
}));
|
||||
|
||||
return this.client.rest.methods.setRolePositions(this.id, updatedRoles);
|
||||
|
|
|
|||
Loading…
Reference in a new issue