Cant find the template

.sapphirerc.json
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "commands",
"listeners": "listeners",
"preconditions": "preconditions"
},
"customFileTemplates": {
"enabled": true,
"location": "templates"
}
}
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "commands",
"listeners": "listeners",
"preconditions": "preconditions"
},
"customFileTemplates": {
"enabled": true,
"location": "templates"
}
}
14 Replies
Oreo ™
Oreo ™OP2y ago
Favna
Favna2y ago
because they were renamed to messagecommand, contextmenucommand and slashcommand in version 1.3.0
Oreo ™
Oreo ™OP2y ago
but im trying to use a custom template
Favna
Favna2y ago
oh i had not seen that my bad
Oreo ™
Oreo ™OP2y ago
Any idea why its not working tho?
Favna
Favna2y ago
@Swiizyy can you help here maybe? im quite busy and you've been doing a lot of CLI work @Swiizyy reping
Swiizyy
Swiizyy2y ago
Sorry, I didn't have the time, I was at work when you pinged me yesterday :/ Hey, could you rename the file other than these names: command/commands. These names are not available
Oreo ™
Oreo ™OP2y ago
i did msgcmd.ts.sapphire before, and it didnt work
Oreo ™
Oreo ™OP2y ago
Oreo ™
Oreo ™OP2y ago
yeah
Swiizyy
Swiizyy2y ago
Mhhh it's strange that... @Oreo ™ Could you update the module to the latest version and try again?
Oreo ™
Oreo ™OP2y ago
✖ Couldn't find a template file for that component type.
Swiizyy
Swiizyy2y ago
@Favna I have the impression that the custom templates do not work...
Auric
Auric2y ago
they should as they work for me my file is called command.ts.sapphire if that changes anything
Want results from more Discord servers?
Add your server