pam
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
should i send you my bot?
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
i cant see ether the option
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
const { ApplicationCommandOptionType } = require('discord.js');
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
module.exports = {
data: {
name: 'userinfo',
description: 'Fornisce informazioni sull'utente specificato',
options: [
{
name: 'user',
description: 'L'utente di cui visualizzare le informazioni (opzionale)',
type: ApplicationCommandOptionType.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'));
},
};31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
type: ApplicationCommandOptionType.User,
^
ReferenceError: ApplicationCommandOptionType is not defined
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
I'll try tomorrow
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
So what I need to change?
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
Let me try tomorrow
31 replies
DIAdiscord.js - Imagine an app
•Created by pam on 6/18/2023 in #djs-questions
Help
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'));
},
};31 replies