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 { ActivityTypes } = require('../util/Constants');
/**
* Represents a user's presence.
@@ -67,7 +67,7 @@ class Activity {
* The type of the activity status
* @type {ActivityType}
*/
this.type = Constants.ActivityTypes[data.type];
this.type = ActivityTypes[data.type];
/**
* If the activity is being streamed, a link to the stream