refactor: remove redundant Client#rest and obsolete RESTManager#destroy (#2022)

This commit is contained in:
SpaceEEC
2017-10-11 02:29:50 +02:00
committed by Crawl
parent d8f6198a12
commit 68a30584db
3 changed files with 0 additions and 15 deletions

View File

@@ -32,12 +32,6 @@ class RESTManager {
return Endpoints.CDN(this.client.options.http.cdn);
}
destroy() {
for (const handler of Object.values(this.handlers)) {
if (handler.destroy) handler.destroy();
}
}
push(handler, apiRequest) {
return new Promise((resolve, reject) => {
handler.push({