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 toolkit11mo 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 User11mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs11mo 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
Robelo0611mo ago
It logs now, i'll reply tomorrow It logs an error now
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
Robelo06
Robelo0611mo ago
Here Should I send the code?
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
here
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo 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
Robelo0611mo ago
this is what it is logging panel channel, category, staff role and log channel
Robelo06
Robelo0611mo ago
Updated Code:
Robelo06
Robelo0611mo 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 User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
oh do I need to use the ID of the role? no problem 🙂
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
yeah, it is
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
yep, it's required
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
yeah
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
oh LMAO
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
sorry
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo0611mo ago
thanks for your help 🙂 $close