Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "satella", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Satella - A wrapper for the Discord API made in JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ module.exports = class Message { | ||
this.guild = client.guilds.get(data.guild_id) | ||
this.user = client.users.get(data.author.id) | ||
this.user = data.author ? client.users.get(data.author.id) : undefined | ||
this.member = data.member ? this.guild.members.get(data.author.id) : null | ||
@@ -14,0 +14,0 @@ this.channel = client.channels.get(data.channel_id) |
@@ -10,2 +10,3 @@ module.exports = class User { | ||
this.creatAt = new Date(Math.floor(this.id / 4194304) + 1420070400000) | ||
this.bot = data.bot | ||
} | ||
@@ -12,0 +13,0 @@ |
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
25281
655