interaction.options.getUser()

interaction.options.getUser() returns null
const userDiscord = interaction.options.getUser("user")
const userDiscord = interaction.options.getUser("user")
CommandInteractionOptionResolver {
_group: null,
_subcommand: 'daily',
_hoistedOptions: [
{ value: '364726576656678912', type: 6, name: 'user' },
{ value: '', type: 3, name: 'item', focused: true }
]
}
CommandInteractionOptionResolver {
_group: null,
_subcommand: 'daily',
_hoistedOptions: [
{ value: '364726576656678912', type: 6, name: 'user' },
{ value: '', type: 3, name: 'item', focused: true }
]
}
2 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
ɅV
ɅVOP3y ago
autocomplete thanks
Want results from more Discord servers?
Add your server