Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 617

[Discord.JS] V14 | Need a bit of help with Buttons

by Tana - 06 October, 2022 - 09:28 PM
This post is by a banned member (Tana) - Unhide
Tana  
Godlike
1.561
Posts
430
Threads
6 Years of service
#1
Hello. I have made a command with 2 buttons and I would like to allow every people click any of these 2 buttons for one time only. is it possible or not?
Coded a Discord BOT in node.js

If you could help me - Discord: Tana#1190 Pepelove
This post is by a banned member (ANG) - Unhide
This post is by a banned member (Tana) - Unhide
Tana  
Godlike
1.561
Posts
430
Threads
6 Years of service
#3
(06 October, 2022 - 09:29 PM)ANG Wrote: Show More
yes u can store there ID"s in a DB and check if its not in there or even a file or add a role like clicked and hide the channel under that role.

Is it possible to store somehow with no db? Never coded a bot with a db before kek
This post is by a banned member (ANG) - Unhide
This post is by a banned member (Tana) - Unhide
Tana  
Godlike
1.561
Posts
430
Threads
6 Years of service
#5
(06 October, 2022 - 10:33 PM)ANG Wrote: Show More
(06 October, 2022 - 10:15 PM)Tana Wrote: Show More
(06 October, 2022 - 09:29 PM)ANG Wrote: Show More
yes u can store there ID"s in a DB and check if its not in there or even a file or add a role like clicked and hide the channel under that role.

Is it possible to store somehow with no db? Never coded a bot with a db before kek

yes just append it in a .txt file then read it if it the discord ID is in it u return Flase if not return True

thank you I will give it a try Pepelove

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)