Panel command doesn't create the channel

My panel command creates the panel but doesn't allow anyone to open a ticket when clicking on the button The console gives no error and it does ot create the channel code: https://sourceb.in/wriudpL9HD
SourceBin
panel
Instantly share your code with the world.
32 Replies
d.js toolkit
d.js toolkit17mo ago
- 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!
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs17mo ago
If you are waiting for button or select menu input from a specific message, don't create the collector on the channel. - Channel collectors return component interactions for any component within that channel.
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
Robelo06
Robelo06OP17mo ago
It logs now, i'll reply tomorrow It logs an error now
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
Robelo06
Robelo06OP17mo ago
Here Should I send the code?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
here
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
Sure Intents: Guilds and DirectMessage, I'm logging each thing I just realized I didn't have to log each things but variables lmao a few mins and done
Robelo06
Robelo06OP17mo ago
Robelo06
Robelo06OP17mo ago
this is what it is logging panel channel, category, staff role and log channel
Robelo06
Robelo06OP17mo ago
Updated Code:
Robelo06
Robelo06OP17mo ago
Here's the problem explained better: I have a tickets panel command, code: https://sourceb.in/bLpyD3JMXK When an user clicks on the button it returns an error (screenshot) Here's the ticketchannell, category, support team and log channel it console.log: https://sourceb.in/3bgOL1CbE9
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
oh do I need to use the ID of the role? no problem 🙂
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
yeah, it is
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
yep, it's required
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
yeah
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
oh LMAO
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
sorry
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo06OP17mo ago
thanks for your help 🙂 $close
Want results from more Discord servers?
Add your server