Failure to create channel
For some reason, I tried a lot of ways to create a channel when they click the button but it doesn't work every time.
16 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!what error did you get? (sorry I'm reading the code on mobile)
I didn’t get one
It’s for interactioncreate.js too.
it just does nothing huh?
are you recieving this log:
console.log(`Button clicked: ${interaction.customId}`); // Debugging log
No
Am I doing it wrong?
probably need to specify the correct intents to listen for the interaction.
maybe i said that poorly
make sure you have GatewayIntentBits.Guilds
@blvckz
I don't think it's the issue, since bot doesn't need to be in guild to receive Interaction Create
can you use the command?
try removing guilds intent bits and then collecting a button interaction
👌
i attempted and couldnt. I could be wrong of course
Yes
K so what do I have to do
did you save your file?
Yes it’s auto save
it's really weird since you can still use the command
Yeah
the code does work for me...
hm maybe i used the wrong thing idk