invictus
invictus
DIAdiscord.js - Imagine an app
Created by m1ntyx on 8/30/2023 in #djs-questions
Interaction Failed, buttons are not working
That means your bot did not respond to the interaction. Have you setup the listener for the button interaction?
19 replies
DIAdiscord.js - Imagine an app
Created by cup on 8/29/2023 in #djs-questions
slash command reply taking a minute or two to send message despite logging fine
Oh I see. I thought it's an independent function
20 replies
DIAdiscord.js - Imagine an app
Created by cup on 8/29/2023 in #djs-questions
slash command reply taking a minute or two to send message despite logging fine
I just noticed, I think you miss function keyword at the beginning. You don't get error from that? Because it shouldn't be valid.
20 replies
DIAdiscord.js - Imagine an app
Created by cup on 8/29/2023 in #djs-questions
slash command reply taking a minute or two to send message despite logging fine
I see
20 replies
DIAdiscord.js - Imagine an app
Created by cup on 8/29/2023 in #djs-questions
slash command reply taking a minute or two to send message despite logging fine
That's weird. That means the .deferReply() doesn't even run. Do you perhaps have another listener for the command that runs prior to that?
20 replies
DIAdiscord.js - Imagine an app
Created by cup on 8/29/2023 in #djs-questions
slash command reply taking a minute or two to send message despite logging fine
"stopped working" as in there is no reply till the token expires? (15 min)
20 replies
DIAdiscord.js - Imagine an app
Created by cup on 8/29/2023 in #djs-questions
slash command reply taking a minute or two to send message despite logging fine
Have you tried .deferReply() to extend the reply time limit and see whether the reply will actually land?
20 replies
DIAdiscord.js - Imagine an app
Created by xHeg on 8/19/2023 in #djs-questions
Duplicated Application Commands
Fair point
28 replies
DIAdiscord.js - Imagine an app
Created by xHeg on 8/19/2023 in #djs-questions
Duplicated Application Commands
Yes for djs. The latest there is v13. For the others, not all are outdated. Sometimes things stayed that way till now. That's why you need to recheck what ChatGPT tells you. It doesn't mean you can't use it entirely.
28 replies
DIAdiscord.js - Imagine an app
Created by xHeg on 8/19/2023 in #djs-questions
Duplicated Application Commands
Using it is fine. But don't just blindly copy whatever it says.
28 replies
DIAdiscord.js - Imagine an app
Created by Marcus on 8/19/2023 in #djs-questions
SlashCommandHandler - Not answering
Yeah, the contents, not how your browser displays it.
284 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
Well, thanks anyway. I noticed that awaitMessageComponent() halts the function execution, saving the rest for the next interaction. So, the loop is safe here, as it only runs when there is a new interaction.
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
hehe it works though 😁
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
What If I put the awaitMessageComponent on loop?
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
Ohhh
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
So the .editReply() code doesn't even get called.
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
Apparently, I ran into another problem. It looks like the function only run twice (First after the slash command is called, second after the user responds)? After that, my console.log no longer logs any things. The next interaction only got intercepted by interactionCreate listener, which is on a different file.
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
Okay, let me try
18 replies
DIAdiscord.js - Imagine an app
Created by invictus on 8/21/2023 in #djs-questions
How to `update() ` the same interaction multiple times?
Should I make a new variable or can I just directly call .editReply() from userChoice?
18 replies
DIAdiscord.js - Imagine an app
Created by cat neko on 8/20/2023 in #djs-questions
my bot cannot be connect to discord
Continue the code, bro. All you did is just logging the interaction.
40 replies