Lot of problems with SapphireJS

Hello, I have some problems First of all with the i18next plugin integrated into sapphire, I would like to compile my languages ​​folder instead of leaving it forever in the dist Then with the ModalSubmitInteraction, I cannot retrieve Interaction to pass it to i18next in order to display a translation Then, how could I retrieve my interaction in order to modify it in another file? (for example for a paginated message) Thanking you
2 Replies
1m4sp3ct
1m4sp3ctOP16mo ago
Mhhh, possible to load preconditions into interactions ? In my project is possible only in commands so sad, i has only 1 command
Favna
Favna16mo ago
- First of all with the i18next plugin integrated into sapphire, I would like to compile my languages ​​folder instead of leaving it forever in the dist Add this to your tsconfig: under compilerOptions: resolveJsonModule: true in includes: src/**/*.json (or whatever is your correct path, just make sure JSON is included) the other 2 I dont really get, especially in the context of Sapphire. I'd need more information about what exactly you want to do. if you mean interaction-handlers then no, preconditions are for commands. If you mean for slash commands, see our guide. It's the exact same for message and for slash and context menu commands.
Want results from more Discord servers?
Add your server