TheOchulus/commands/testing/user.js

12 lines
568 B
JavaScript
Raw Normal View History

2023-11-18 00:24:24 +01:00
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('user')
.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
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-18 00:24:24 +01:00
},
};