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 ™OP3y ago
Favna
Favna3y ago
because they were renamed to messagecommand, contextmenucommand and slashcommand in version 1.3.0
Oreo ™
Oreo ™OP3y ago
but im trying to use a custom template
Favna
Favna3y ago
oh i had not seen that my bad
Oreo ™
Oreo ™OP3y ago
Any idea why its not working tho?
Favna
Favna3y ago
@Swiizyy can you help here maybe? im quite busy and you've been doing a lot of CLI work @Swiizyy reping
Swiizyy
Swiizyy3y 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 ™OP3y ago
i did msgcmd.ts.sapphire before, and it didnt work
Oreo ™
Oreo ™OP3y ago
Oreo ™
Oreo ™OP3y ago
yeah
Swiizyy
Swiizyy3y ago
Mhhh it's strange that... @Oreo ™ Could you update the module to the latest version and try again?
Oreo ™
Oreo ™OP3y ago
✖ Couldn't find a template file for that component type.
Swiizyy
Swiizyy3y ago
@Favna I have the impression that the custom templates do not work...
Auric
Auric3y ago
they should as they work for me my file is called command.ts.sapphire if that changes anything

Did you find this page helpful?