skopa/commands/utility/user.js

13 lines
412 B
JavaScript
Raw Normal View History

2023-12-17 20:21:26 -05:00
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>**.`);
},
};