IndiumJS/commands/utilities/userinfo_cmd.js

13 lines
534 B
JavaScript
Raw Normal View History

2023-08-21 11:27:39 -04:00
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('userinfo')
2023-08-21 11:27:39 -04:00
.setDescription('Provides information about the user.'),
async execute(interaction) {
// interaction.user is the object representing the User who ran the command
// interaction.member is the GuildMember object, which represents the user in the specific guild
await interaction.reply(`This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`);
},
};