Im trying this slash comand but i cant see the option 'user'
module.exports = {
data: {
name: 'userinfo',
description: 'Fornisce informazioni sull'utente specificato',
options: [
{
name: 'user',
description: 'L'utente di cui visualizzare le informazioni (opzionale)',
type: 'USER',
required: false,
},
],
},
async execute(interaction) {
const user = interaction.options.getUser('user') || interaction.user;
const userInfo = [
`Nome utente: ${user.username}`,
`ID: ${user.id}`,
`Account creato il: ${user.createdAt}`,
];
interaction.reply(userInfo.join('\n'));
},
};