SIA
Sapphire - Imagine a frameworkRIZE Hobberz
/twitchadd (name) (link)
name = choice name
link = choice value
MRDGH2821•79d 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•77d ago
ik that but idk how
MRDGH2821•77d 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 resultSapphire 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•77d ago
i want to use a file to store data
or is that not possible
MRDGH2821•77d ago
Search online on how to save data in a local file
That will act as database for your bot then
RIZE Hobberz•77d 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•77d 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•77d ago
im using sillydev to host
which has database
but idk how to access it
RIZE Hobberz•77d ago
MRDGH2821•77d ago
Search which kind of database it is
Find some packages in npm or internet which can connect to this database
Use it
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.2KMembers
View on DiscordWant results from more Discord servers?
More Postsplease helpwe need help with a non respondent monitor and we have tried unplugging and changing the cords PLEASHello ,I need some Help about listeners in sapphire frameworkany one have a working example of ("guildMemberAdd") , a bot that welcome user when they join the seTypescript error in @ApplyOptions```ts
import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framewIs there events listing like discord.js does?Just like in the screenshot, discord.js has listed out all events .
So where I can find the same fomaking a !help command. where do i get the commands from?im trying to make a help command since I've started learning about paginated messages, but where wouthis.error()Is there any way of using `this.error()` but not trigger `messageCommandDenied`? This is because on Throwing errors in commands/subcommandsJust curious if there is a way to throw an error in an application command/subcommand and have it haDynamic subcommand methodsHey, i am creating some subcommands that basically have the same runner method, but i would wanna knHow do i use "separators" command in sapphire?Hi! Im new at sapphire/framework, i was reading the docs and seeing there is a `separators` options Limit command to specified roles?I honestly haven't done this in a while (not since pre-application commands) and am new to using SapHow to reference client in main file?I am trying to get `<Client>.users` from the index.ts but I am unsure as to how I would get around tList registered commands and listenersHi, i love working with sapphire it's amazing.
I'm just wondering is there a way to obtain some sortCannot find moduleAnyone know what I need to install? (Ubuntu 22, image attached)Module augmentation does not workI recently updated my project with the latest versions of typescript and @sapphire/framework, and thConflicting typesI use the latest version of djs (14.14.1) and it seems like it has different types for taking the renew to sapphirejs and discord bot overhaulhi , i'm a new learner to make discord bot , i've gone a bit trought the basic of discordjs , was abA bunch of errors from discord.js's index.d.ts file when compilingdjs version: latest (14.14.1)
If needed, I can send my ts-config here.
Some notes:
- Adding skipLibhelpkeep getting this error not sure how to fix
```RuntimeError: abort(TypeError: fetch failed). Build Dump and load cached messages.I'm not the one that usually works with the Discord Bot in our system, but I usually learn somethingHow do interaction handlers pair up with commandsHello! I'm trying to develop a little discord bot and I loved how complete the sapphire framework is