Skip to content

Commit

Permalink
fix: existentially check user creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 2, 2021
1 parent 52fc9ed commit dfa7142
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/embeds/UserInfoEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ const affirm = '✓';
* Generates daily deal thiss
*/
class UserInfoEmbed extends BaseEmbed {
/**
* @param {Genesis} bot - An instance of Genesis
* @param {Array<Guild>} guilds - The guilds this bot shares on this shard with a user
* @param {User} user - The targeted user of the command
* @param {GuildMemeber} member - The guild member object for thetargeted user,
* if called in a guild.
* @param {Message} message - Message this derives information from.
*/
constructor(bot, guilds, user, member, message) {
super();

Expand All @@ -37,7 +29,7 @@ class UserInfoEmbed extends BaseEmbed {
},
{
name: 'Registered',
value: user.createdAt.toLocaleString(),
value: user?.createdAt?.toLocaleString() || 'N/A',
inline: true,
},
];
Expand Down

0 comments on commit dfa7142

Please sign in to comment.