2023-11-19 23:59:41 +00:00
|
|
|
import { SlashCommandBuilder } from 'discord.js';
|
2023-11-17 23:24:24 +00:00
|
|
|
|
2023-11-19 23:59:41 +00:00
|
|
|
export const data = new SlashCommandBuilder()
|
|
|
|
.setName('user')
|
|
|
|
.setDescription('Provides information about the user.');
|
|
|
|
|
|
|
|
export async function 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
|
|
|
|
|
|
|
}
|