Ju
DIAdiscord.js - Imagine an app
•Created by Ju on 10/21/2023 in #djs-questions
Async datas in command.data (SlashCommand)
Hey everyone !
I'm trying to register that new one command, actually that I want is to pass "interaction" in
data
with async method (code bellow).
For example, I want to get guild ID (then from interaction) to do some Prisma requests with that guild ID parameter and then update one dropdown select with results (from database).
But I get errors when reload my bot (error bellow too), any informations ?
Thanks 🙂
There is my index.js
file (with command register) :
9 replies