devland.js
Advanced tools
Comparing version 1.2.51 to 1.2.52
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.2.51", | ||
"version": "1.2.52", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -26,8 +26,7 @@ const Utils = require('../util') | ||
this.id = data.id | ||
if(!data.user.discriminator || data.user.discriminator === "0") { | ||
thus.tag = data.user.username | ||
if(!data.discriminator || data.discriminator === "0") { | ||
thus.tag = data.username | ||
} else { | ||
this.tag = data.user.username + '#' + data.user.discriminator | ||
this.tag = data.username + '#' + data.discriminator | ||
} | ||
this.tag = `${data.username}#${data.discriminator}` | ||
this.discriminator = data.discriminator | ||
@@ -34,0 +33,0 @@ this.displayName = data.displayName |
Sorry, the diff of this file is too big to display
1708447
18515