/twitchadd (name) (link)

name = choice name link = choice value
No description
10 Replies
MRDGH2821
MRDGH28219mo ago
You will have to store it in a database. /twitchadd -> stores into database Use autocomplete in /twitch. That autocomplete will retrieve items from database
RIZE Hobberz
RIZE HobberzOP9mo ago
ik that but idk how
MRDGH2821
MRDGH28219mo ago
About saving in database: 1. /twitchadd will accept values from user 2. Values will be then saved in database You can use any kind of SQL database, for eg: PostgreSQL, MySQL, etc Or NoSQL ones like firestore, MongoDB, Redis About using Autocomplete: 1. Enable autocomplete in /twitch 2. https://sapphirejs.dev/docs/Guide/interaction-handlers/autocomplete 3. Fetch values from database 4. Send it as search result
Sapphire Framework
Autocomplete | Sapphire
Certain Chat Input Command options can be autocompleted based on what the user has written. There are two ways you can
RIZE Hobberz
RIZE HobberzOP9mo ago
i want to use a file to store data or is that not possible
MRDGH2821
MRDGH28219mo ago
Search online on how to save data in a local file That will act as database for your bot then
RIZE Hobberz
RIZE HobberzOP9mo ago
i tried all this the other day and ended up giving up and taking a break this command is really annoying me its really difficult for me
MRDGH2821
MRDGH28219mo ago
To be Frank, I would suggest using a database. Saving to file will be a headache, unless you save it as JSON file. Still, reading from JSON file can become headache
RIZE Hobberz
RIZE HobberzOP9mo ago
im using sillydev to host which has database but idk how to access it
RIZE Hobberz
RIZE HobberzOP9mo ago
No description
MRDGH2821
MRDGH28219mo ago
Search which kind of database it is Find some packages in npm or internet which can connect to this database Use it
Want results from more Discord servers?
Add your server