toaster_12301
toaster_12301
DIAdiscord.js - Imagine an app
Created by toaster_12301 on 4/30/2024 in #djs-questions
Getting user from interaction options
What do I have to do to chage the return type to either 6 or 9 aka a user?
.addStringOption(option =>
option
.setName('user')
.setDescription('The user.')
.setRequired(false)
),
async execute(interaction) {
await interaction.deferReply();
console.log(interaction.options.getUser('user'));
.addStringOption(option =>
option
.setName('user')
.setDescription('The user.')
.setRequired(false)
),
async execute(interaction) {
await interaction.deferReply();
console.log(interaction.options.getUser('user'));
4 replies