Option Choices Async function.
Hi i'm trying to set my organization repos as string choices. I can use an await promise so I can't figure out how can It could be done. The code I have is this:
Can a async function work like that?
11 Replies
⢠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.Unknown Userā¢3y ago
Message Not Public
Sign In & Join Server To View
idk, the error I have is this:
Unknown Userā¢3y ago
Message Not Public
Sign In & Join Server To View
who's duck
I have awaits at all the code š¦
the
addStringOption callback can't be async
it's expected to return the option builder, not a Promise
autocomplete would definitely be the move, or at the very least just calling <SlashCommandBuilder>.addStringOption() inside an async function and resolving it before deployingthanks duck
do you have any example at the docs?
example of what?
autocomplete the
<SlashCommandBuilder>.addStringOption()Thanks!
