TheOchulus/commands/testing/user.js

12 lines
552 B
JavaScript
Raw Normal View History

2023-11-20 00:59:41 +01:00
import { SlashCommandBuilder } from 'discord.js';
2023-11-18 00:24:24 +01:00
2023-11-20 00:59:41 +01:00
export const data = new SlashCommandBuilder()
.setName('user')
.setDescription('Provides information about the user.');
export async function execute(interaction) {
2023-11-18 00:24:24 +01: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-18 00:28:36 +01:00
await interaction.reply(`This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`);
2023-11-20 00:59:41 +01:00
}