TheOchulus/commands/testing/user.js

14 lines
562 B
JavaScript
Raw Normal View History

2023-11-27 00:02:34 +01:00
const { SlashCommandBuilder } = require('discord.js');
2023-11-18 00:24:24 +01:00
2023-11-27 00:02:34 +01:00
module.exports = {
data: new SlashCommandBuilder()
2023-11-20 00:59:41 +01:00
.setName('user')
2023-11-27 00:02:34 +01:00
.setDescription('Provides information about the user.'),
2023-11-20 00:59:41 +01:00
2023-11-27 00:02:34 +01:00
async 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
2023-11-27 00:02:34 +01:00
},
};