Who is Sapphire for ?

I was reading about the framework. So if I understand, that is basically just adding an opiniated structure to your code? Assuming you have made big bots and know your way with ts/js, is that something that is still commonly used by proficient bot developers, or is it something whos more aimed at helping beginners with their journey?
Solution:
either way, the point is that either you can choose to maintain a lot of code for command handling yourself (especially if you use slash commands), or use a framework and have that work done for you.
Jump to solution
6 Replies
Favna
Favna4mo ago
both
Spinel
Spinel4mo ago
What is so good about Sapphire? That's like asking what's so good about cornflakes. It'll get a very subjective answer. Sapphire is the official bot framework for Discord.js for starters. Take that for what you will. Other than that, the core reason to use Sapphire is that sooner or later when writing any half-serious bot, you'll be writing your command handler if you don't use Sapphire, and why would you willingly maintain your code, likely lacking features and potentially with bugs and/or crappy performance and/or non-scalability, when you can use Sapphire which has all of the same features, guarantees near to no bugs (and any bugs get patched), great performance and great scalability? Saves you work on the menial tasks and frees that time to actually bring a bot to production, which was the original end goal.
Favna
Favna4mo ago
note to self: still need to rewrite that to be less aggresive
Solution
Favna
Favna4mo ago
either way, the point is that either you can choose to maintain a lot of code for command handling yourself (especially if you use slash commands), or use a framework and have that work done for you.
Favna
Favna4mo ago
It's the same reasoning why you use DiscordJS instead of raw js/ts to connect to the Discord API or why you would use something like Express or Fastify over raw node:http etc
flirtiest
flirtiest3mo ago
I see, thank you!