Delete Channel With Button
I have this simple function https://pastebin.com/LygHwdrQ which is meant to do the following:
1: You press the button
2: It deletes the ticket
3: Send a message in dms
but when I click the button it does nothing and the bot doesn't give error.
Pastebin
Delete Channel Ticket - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
52 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.
- Issue solved? Press the button!
There is no error in the console and the function for the button is inside the pastebin link.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Which event? The button clicked?
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
yeah first line of pastebin link
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
how can I know if it emits? I am not sure how
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
isnide the if statement of the button or outside?
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
okay testing right now
the button doesn't emits at all
I click the button and it didn't console log
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
sure
Pastebin
// Require the packages/filesconst config = require('dotenv').confi...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.