user: commit initial file

This commit is contained in:
Seaswimmer 2023-08-21 11:27:39 -04:00
parent 880a9a0aa3
commit 011002e379
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

12
commands/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}.`);
},
};