Button

How can I reuse the same button of my discord bot multiple times? because after the first time that I pressed the button I can't press it again.
15 Replies
d.js toolkit
d.js toolkit12mo ago
• 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.
treble/luna
treble/luna12mo ago
use the interactionCreate event but if the button gets disabled after the first time i'd recommend removing that
yuyaaici_YT
yuyaaici_YT12mo ago
but there aren't other ways to fix that? because interactionCreate doesn't work
treble/luna
treble/luna12mo ago
show your code
yuyaaici_YT
yuyaaici_YT12mo ago
this is my code
d.js docs
d.js docs12mo ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
treble/luna
treble/luna12mo ago
and i can see right here why you are facing this issue https://bork.treble-is-fluffy.gay/floofd2f2ff2e.png
yuyaaici_YT
yuyaaici_YT12mo ago
How I can fix it?
treble/luna
treble/luna12mo ago
send your code in sourcebin first
yuyaaici_YT
yuyaaici_YT12mo ago
Because I tried to remove that code but the same problem
treble/luna
treble/luna12mo ago
and you can fix that part...by removing that code? please show the full code
yuyaaici_YT
yuyaaici_YT12mo ago
ok
treble/luna
treble/luna12mo ago
ok so first of all, use global commands because you are gonna get ratelimited and second of all this is technically a TOS violation, which we do not support
yuyaaici_YT
yuyaaici_YT12mo ago
ok thanks