From 011002e3793d43e1c96dfecd15de9962d74bc30f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 21 Aug 2023 11:27:39 -0400 Subject: [PATCH] user: commit initial file --- commands/user.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 commands/user.js diff --git a/commands/user.js b/commands/user.js new file mode 100644 index 0000000..6ef0ba8 --- /dev/null +++ b/commands/user.js @@ -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}.`); + }, +};