Add user slash command

This commit is contained in:
baz 2023-11-17 23:24:24 +00:00
parent 08b75d376e
commit 2d181d2f5a
1 changed files with 12 additions and 0 deletions

12
commands/testing/user.js Normal file
View File

@ -0,0 +1,12 @@
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
await interaction.reply('This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.');
},
};