Question

Hey! What is the difference about sapphire and discord.js? Or what is sapphire? I read the docs but i dont understand
3 Replies
Spinel
Spinel2y 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 discordjs for starters. Take that for what you will. Other than that, the core reason to use Sapphire is because, sooner or later when writing any half serious bot, you'll be writing your own command handler if you don't use Sapphire, and why would you willingly maintain your own 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.
!g0nc4
!g0nc4OP2y ago
@kyra 🩵🩷🤍🩷🩵 so shappire is only to make handlers etc.?
kyra
kyra2y ago
It's much more than that, it has what you'd call a handler of handlers, which then the framework uses to provide specific handlers for specific purposes, as well as the plugins which extend the framework's functionality even further. In a way, you can think of Sapphire as more like an ecosystem, where the framework is a very extensible library that you can add pieces onto to extend what it can do.
Want results from more Discord servers?
Add your server