Fix the requested part and mute eslint for now

This commit is contained in:
Helloyunho 2021-01-21 14:45:55 +09:00
parent 8b564a4b49
commit e99bf61f3a
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,6 @@ export class RolesManager extends BaseManager<RolePayload, Role> {
options
)
const result = new Role(this.client, resp, this.guild)
return result
return new Role(this.client, resp, this.guild)
}
}

View file

@ -135,6 +135,7 @@ export class Collector extends EventEmitter {
}
/** Returns a Promise resolved when Collector ends or a timeout occurs */
// eslint-disable-next-line
async wait(timeout: number = this.timeout ?? 0): Promise<Collector> {
return await new Promise((resolve, reject) => {
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions