TheOchulus/commands/testing/user.js

12 lines
552 B
JavaScript

import { SlashCommandBuilder } from 'discord.js';
export const data = new SlashCommandBuilder()
.setName('user')
.setDescription('Provides information about the user.');
export async function 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}.`);
}