34 Replies
because they were renamed to
messagecommand
, contextmenucommand
and slashcommand
in version 1.3.0but im trying to use a custom template
oh i had not seen that my bad
Any idea why its not working tho?
@Swiizyy can you help here maybe? im quite busy and you've been doing a lot of CLI work
@Swiizyy reping
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
i did
msgcmd.ts.sapphire
before, and it didnt workyeah
Mhhh it's strange that...
@Oreo ™ Could you update the module to the latest version and try again?
✖ Couldn't find a template file for that component type.
@Favna I have the impression that the custom templates do not work...
they should as they work for me
my file is called
command.ts.sapphire
if that changes anything
could it be the argument that you provide in the CLI?you mean using
g
instead of generate
?
ok yeah
same errornah i mean after that
command
msgcmd?
try
msgcmd
thats what i used here
i mean try
sapphire g msgcmd test
oh yeah so it should be
command
you wanna try renaming msgcmd.ts.sapphire
to command.ts.sapphire
ok
.
can i see the contents of
msgcmd.ts.sapphire
and i want to see the location of the templates
folderthis is just the template
this
i tried one with valid typescript
same error
that's strange i dont see any issues
do you use yaml or json
json
ok
no idea why my one isnt working
what version is your cli
latest
havent used it in a while tho
my bot's source code is on my profile if you want a reference