mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix: use Object.keys instead of Object.values for node 6 (#2487)
This commit is contained in:
parent
ff671b2f3c
commit
feb0991c46
1 changed files with 2 additions and 1 deletions
|
|
@ -16,7 +16,8 @@ class RESTManager {
|
|||
}
|
||||
|
||||
destroy() {
|
||||
for (const handler of Object.values(this.handlers)) {
|
||||
for (const handlerKey of Object.keys(this.handlers)) {
|
||||
const handler = this.handlers[handlerKey];
|
||||
if (handler.destroy) handler.destroy();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue