infinitygl
DIAdiscord.js - Imagine an app
•Created by infinitygl on 3/12/2024 in #djs-questions
Roll For UGC (Issue with epheremal message out of stock message, not showing up at correct time.)
So, my code is working properly, the only issue I'm running into is that when someone gets dmed a code when they roll the winning number 6969 it doesn't immediately give them the epheremal message that codes are out of stock and continues to let the other users roll the dice. Am I doing something incorrectly? Should I put like the check somewhere else or something, cause i ran in to the issue of it allowing another person to roll the winning number 6969 and get dmed the same code, when it should have not gave any dm of this var code since the codes contained was empty, as it got removed too.
I added the full code to pastebin since it seemed kind of long to me.
https://pastebin.com/fE4Khjix
3 replies
DIAdiscord.js - Imagine an app
•Created by infinitygl on 3/11/2024 in #djs-questions
/wouldyourather (slash command, issue with buttons)
Can anyone look at my code to see why buttons are not working I am trying to make code for /wouldyourrather slash command which prompts the user to enter input1 and input2 by pressing the option buttons then pressing enter to simulate voting and then ends the poll but the buttons are not working for some reason. I would appreciate it if you can look at my code and let me know if you can pinpoint the issue, here is the current code:
https://sourceb.in/u0vgGQU2ZK
27 replies