Error importing a plugin
here is my index.js - https://pastebin.com/3HDUAfVY
Here is the plugin I'm trying to import and having an issue with - https://pastebin.com/45Nm9hSf
I am not great with javascript, maybe I'm missing something? can someone point me in the right places?
Pastebin
Index.js - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
DDoSAttackCounter.js - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Solution:Jump to solution
you placed it inside of "src/commands", which the command store expects everything inside of there to extend the "Command" class, causing that error to occur
as for how plugins are done: you can refer to here https://github.com/sapphiredev/plugins/tree/main/packages
im unsure if there's a guide on making them or not...
GitHub
plugins/packages at main · sapphiredev/plugins
Plugins for the Sapphire Framework. Contribute to sapphiredev/plugins development by creating an account on GitHub.
3 Replies
Here is my error
Solution
you placed it inside of "src/commands", which the command store expects everything inside of there to extend the "Command" class, causing that error to occur
as for how plugins are done: you can refer to here https://github.com/sapphiredev/plugins/tree/main/packages
im unsure if there's a guide on making them or not
GitHub
plugins/packages at main · sapphiredev/plugins
Plugins for the Sapphire Framework. Contribute to sapphiredev/plugins development by creating an account on GitHub.
❤️ thank you