devland.js
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -10,3 +10,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -13,0 +13,0 @@ "main": "index.js", |
@@ -20,3 +20,4 @@ const Client = require('../../client/client') | ||
obj.id = data.id | ||
obj.user = client.users.get(data.user_id) | ||
obj.user = client.users.get(data.user_id) || await client.rest.get(client._ENDPOINTS.USER(data.user_id)) | ||
if(obj.user && !(obj.user instanceof User)) obj.user = new User(client, obj.user) | ||
obj.user.tag = obj.user.username + '#' + obj.user.discriminator | ||
@@ -23,0 +24,0 @@ obj.action_type = data.action_type |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
720061
12598