Moved thing that needed member in if
This commit is contained in:
parent
cacdf71242
commit
0f89f5af28
1 changed files with 8 additions and 4 deletions
|
@ -38,8 +38,14 @@ class userInfoCommand extends Command {
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
|
||||||
// Show since when this user have been boosting the current guild
|
|
||||||
if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true);
|
if (member) {
|
||||||
|
// Show since when this user have been boosting the current guild
|
||||||
|
if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true);
|
||||||
|
// Show guild nickname
|
||||||
|
if (member.nickname) Embed.addField('Nickname', member.nickname, true);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Embed.addField('', '');
|
Embed.addField('', '');
|
||||||
|
|
||||||
|
@ -52,8 +58,6 @@ class userInfoCommand extends Command {
|
||||||
// Is the user a bot?
|
// Is the user a bot?
|
||||||
if (user.bot) Embed.addField('Is a bot?', '✅', true);
|
if (user.bot) Embed.addField('Is a bot?', '✅', true);
|
||||||
|
|
||||||
// Show guild nickname
|
|
||||||
if (member.nickname) Embed.addField('Nickname', member.nickname, true);
|
|
||||||
// Show user locale ( i have no idea what it is ) https://discord.js.org/#/docs/main/master/class/User?scrollTo=locale
|
// Show user locale ( i have no idea what it is ) https://discord.js.org/#/docs/main/master/class/User?scrollTo=locale
|
||||||
if (user.locale) Embed.addField('Locale settings', user.locale, true);
|
if (user.locale) Embed.addField('Locale settings', user.locale, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue