Hey, there. You shouldn't need to mock CommandInteractionOptionResolver, because we're passing the resolved options directly to the CommandInteraction class. That's why, according to this guide, you have to pass it as an object like this
{ "id": "config", "name": "config", "type": 1, "options": [ { "type": 1, "name": "set", "options": [{ "value": "en", "type": 3, "name": "lang" }], } ] }
or parse a command line like I've showed previously in the guide.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey, there.
You shouldn't need to mock CommandInteractionOptionResolver, because we're passing the resolved options directly to the CommandInteraction class.
That's why, according to this guide, you have to pass it as an object like this
or parse a command line like I've showed previously in the guide.