refactor: make use of destructuring for Constants (#1942)

This commit is contained in:
SpaceEEC
2017-09-16 20:31:36 +02:00
committed by Crawl
parent 25ece1882b
commit ec4c98704f
66 changed files with 262 additions and 262 deletions

View File

@@ -1,4 +1,4 @@
const Constants = require('../util/Constants');
const { Endpoints } = require('../util/Constants');
const Base = require('./Base');
/**
@@ -127,7 +127,7 @@ class Invite extends Base {
* @readonly
*/
get url() {
return Constants.Endpoints.invite(this.client.options.http.invite, this.code);
return Endpoints.invite(this.client.options.http.invite, this.code);
}
/**