Problem with this.container.stores.get().get();
Code:
Solution:Jump to solution
The error means you're probably not running this code in a piece (listener, command, etc), so
this.container
doesn't exist. Instead, import container
from @sapphire/framework
directly.9 Replies
Solution
The error means you're probably not running this code in a piece (listener, command, etc), so
this.container
doesn't exist. Instead, import container
from @sapphire/framework
directly.Also, just looking at your code.. what?
It looks like you're creating a command handler, but the whole point of sapphire is that it does that for you
I recommend you read the guide
oops
it's for a error handler
not a cmd handler
but thanks
You might still want to look into sapphire's arg system to save you manually splitting and parsing the message
can you send me the docs for that
Documentation suggestion for @-Carlosđź‘‘:
<:_:746069730170896405> Sapphire guide results:
Arguments / Using arguments in your commands / String arguments​