13 lines
412 B
JavaScript
13 lines
412 B
JavaScript
|
const { SlashCommandBuilder } = require('discord.js');
|
||
|
|
||
|
module.exports = {
|
||
|
data: new SlashCommandBuilder()
|
||
|
.setName('user')
|
||
|
.setDescription('Prints user info'),
|
||
|
async execute(interaction) {
|
||
|
let joinStamp = interaction.member.joinedTimestamp;
|
||
|
joinStamp = Math.floor(joinStamp / 1000);
|
||
|
await interaction.reply(`You are **${interaction.user.username}**. You came here **<t:${joinStamp}:R>**.`);
|
||
|
},
|
||
|
};
|