14 lines
562 B
JavaScript
Raw Normal View History

2023-11-26 23:02:34 +00:00
const { SlashCommandBuilder } = require('discord.js');
2023-11-17 23:24:24 +00:00
2023-11-26 23:02:34 +00:00
module.exports = {
data: new SlashCommandBuilder()
2023-11-19 23:59:41 +00:00
.setName('user')
2023-11-26 23:02:34 +00:00
.setDescription('Provides information about the user.'),
2023-11-19 23:59:41 +00:00
2023-11-26 23:02:34 +00:00
async execute(interaction) {
2023-11-17 23:24:24 +00:00
// 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
2023-11-17 23:28:36 +00:00
await interaction.reply(`This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`);
2023-11-19 23:59:41 +00:00
2023-11-26 23:02:34 +00:00
},
};