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