interactionCreate events not working
87 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.the full code for all the interactionCreate events i have is in the sourcebin
and the stack trace is mentioned below
discord.js version - 14.11
node version - 18.12.1
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
see the problem is
i have 0 clue on where the error is coming from
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the error occurs whenever either of the two interactionCreate events are triggered
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
im trying to send a message which is triggered by a slash command
or
im trying to edit an embed using select menus
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
either one of them
the select menu is sent along with the message
i have a prefix command with the exact same thing sending its select menu is working fine
but selecting an option from that menu does not work
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes i am very sure
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i asked world of code discord server before i moved on to here
and we checked through and they said it wasnt my codes fault
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
alrighty
@Jô 🌈 🦄
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
like u want me to take an ss of the cosole fully?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
k
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
https://srcb.in/jvAq7DKdtA
the ever happens for each one of the things you listed
like when i try to run the slash command the error comes
when i try to select an option from the menu it comes
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yea i did the thingy you told me to
its v14.11
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes sir
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh
lemme fix that rq
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thats for this thing
this is the prefix command version of the slash command which i showed you
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
😔
alr
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
bromush
replit
nigerian prince 1234
Run Node.js code live in your browser. Write and run code in 50+ languages online with Replit, a powerful IDE, compiler, & interpreter.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thats the problem
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i legit have 0 clue from where this is coming from
mb
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
https://srcb.in/2F5AKPaQkc
there is the whole bot code
ngl embeds.js seems pretty pointless so imma remove that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oki
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oopsies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
isnt there 2
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i remember theres one for the help command and then another one for the rest
in the summer im gonna do complete rework
updating commands, embeds n stuff
and shifting everything to slash commands
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
while im doing that ill be sure to add a handler
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i had the same problem in the other server
eventually we just reached a dead end since there was no where in the code where i was trying to serialize a big int
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you mean like on a different bot?
i have a spare one which i use for beta testing
i could try this on that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
its what i use for uptime things
im on a chromebook 🙏
express.js but it automatically switches ip when i get ratelimited
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ngl idk
barely anyone uses my bot in the first place so im surprised too
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
o
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so am i just stuck like this forever
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
o
oki
a bunch of the commands that require some perms are kind of messed up so ill go fix those rq
btw i found the source code for the replit dis uniter
UMARismyname
replit
Disuniter
dis-uniter = keeping disagreement alive = keeping discord alive with bots, even though I don't even use discord.js. Moved to new repl due to repl auth issues ):
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oops
oki
@bromush how many interactionCreate events do you have?
2
no wait 1
What is the entire code for that event listener?
everything is in here
Are you sure that's the only interactionCreate event listener?
I mean that’s the only file I have
So there’s probably not more
I found the problem
The slash commands are working now
I looked through the replit dis uniter package code
And found something that looked like this
logger.debug.bind(logger));
bot.on("interactionCreate",
I removed that and now the thingy worksUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh
my console is being flooded
Before I made the change
For some reason this started popping up
So then I went into the package and looked
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it came before I edited
Idk how
Like it randomly appeared out of no where
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
He’s in the replit server
I pinged him in there and I’m waiting for him to respond
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
He’s probably sleeping
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thanks