devland.js
Advanced tools
Comparing version 1.2.50 to 1.2.51
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.2.50", | ||
"version": "1.2.51", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -13,4 +13,7 @@ const Client = require('../../client/client') | ||
const data = d.d | ||
data.user.tag = data.user.username + '#' + data.user.discriminator | ||
if(!data.user.discriminator || data.user.discriminator === "0") { | ||
data.user.tag = data.user.username | ||
} else { | ||
data.user.tag = data.user.username + '#' + data.user.discriminator | ||
} | ||
client.user = new Models.ClientUser(client, data.user) | ||
@@ -17,0 +20,0 @@ /*for (const [obj] in data.guilds) { |
@@ -26,2 +26,7 @@ const Utils = require('../util') | ||
this.id = data.id | ||
if(!data.user.discriminator || data.user.discriminator === "0") { | ||
thus.tag = data.user.username | ||
} else { | ||
this.tag = data.user.username + '#' + data.user.discriminator | ||
} | ||
this.tag = `${data.username}#${data.discriminator}` | ||
@@ -28,0 +33,0 @@ this.discriminator = data.discriminator |
1708531
18516