diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-08 00:11:03 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-08 00:11:03 -0500 |
| commit | 52f8826e526f0c0aadb86c3e29975aef4dc1ab85 (patch) | |
| tree | 910308d13df0e139dd18eb10fcbb92c014d9caef /bot/src/commands/userinfo.js | |
| parent | c921e5cf8862def58029bd1801074c51113f86ae (diff) | |
| download | AleeBot-52f8826e526f0c0aadb86c3e29975aef4dc1ab85.tar.gz AleeBot-52f8826e526f0c0aadb86c3e29975aef4dc1ab85.tar.bz2 AleeBot-52f8826e526f0c0aadb86c3e29975aef4dc1ab85.zip | |
Bulk delete message event; Guild suggestions; sinfo + uinfo
Diffstat (limited to 'bot/src/commands/userinfo.js')
| -rw-r--r-- | bot/src/commands/userinfo.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bot/src/commands/userinfo.js b/bot/src/commands/userinfo.js index c079661..0cf7332 100644 --- a/bot/src/commands/userinfo.js +++ b/bot/src/commands/userinfo.js @@ -10,16 +10,16 @@ export default { .setName('username') .setDescription('The user to get the information of')), async execute(interaction) { - const username = interaction.options.getUser('username') || interaction.user; - const member = interaction.guild.members.cache.get(username.id); + const user = interaction.options.getUser('username') || interaction.user; + const member = interaction.guild.members.cache.get(user.id); const userEmbed = new EmbedBuilder() - .setAuthor({ name: username.tag, iconURL: username.avatarURL() }) + .setAuthor({ name: user.username, iconURL: user.avatarURL() }) .setDescription('User Information') - .setThumbnail(username.avatarURL()) + .setThumbnail(user.avatarURL()) .addFields( - { name: 'Names', value: `**Display Name:** ${member.displayName}\n**Username:** ${username.username}`}, - { name: 'Identity', value: `**User ID:** ${username.id}` }, - { name: 'Create and Join Times', value: `**Created At:** ${username.createdAt.toUTCString()}\n**Joined Guild At:** ${member.joinedAt.toUTCString()}`} + { name: 'Names', value: `**Display Name:** ${member.displayName}\n**Username:** ${user.username}`}, + { name: 'Identity', value: `**User ID:** ${user.id}` }, + { name: 'Create and Join Times', value: `**Created At:** ${user.createdAt.toUTCString()}\n**Joined Guild At:** ${member.joinedAt.toUTCString()}`} ) .setColor(abEmbedColour); return await interaction.reply({ embeds: [userEmbed] }); |
