devland.js
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -10,3 +10,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -13,0 +13,0 @@ "main": "index.js", |
@@ -25,6 +25,6 @@ const Client = require('../../client/client') | ||
data.channel = channel | ||
let user = data.user ? client.users.get(data.user?.id) || await client.rest.get(client._ENDPOINTS.USER(data.user?.id)) : null; | ||
let user = data.user ? client.users.get(data.user?.id || data.member?.user?.id) || await client.rest.get(client._ENDPOINTS.USER(data.user?.id || data.member?.user?.id)) : null; | ||
if(user && !(user instanceof User)) user = new User(client, user) | ||
let member; | ||
if(data.member) member = guild.members.get(data.user?.id) || await client.rest.get(client._ENDPOINTS.MEMBERS(guild.id, data.user?.id)) | ||
if(data.member) member = guild.members.get(data.user?.id || data.member?.user?.id) || await client.rest.get(client._ENDPOINTS.MEMBERS(guild.id, data.user?.id || data.member?.user?.id)) | ||
if(member && !(member instanceof Member) && (user instanceof User)) member.user = user | ||
@@ -31,0 +31,0 @@ if(member && !(member instanceof Member)) member = new Member(client, guild, member) |
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
720161