#Sapphire not registering commands

1 messages · Page 1 of 1 (latest)

astral kelpBOT
#
  • Which version of @sapphire/framework are you using?
  • What's your file/folder structure?
  • Did you use the CLI to generate your bot?
  • What's your "main" property in package.json
  • Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts?
  • In case you are using version 3.0.0 or higher of @sapphire/framework, and your problem related to message commands, did you add loadMessageCommandListeners to your SapphireClient options

Remember that if you are new to @sapphire/framework it is important that you read the user guide.

cosmic shard
#

Fyi that's something you changed after the code generated

cosmic shard
#

Like I said, read the big red block on the guide.

#

And that's correct because you execute the JavaScript code in dist, not the typescript code in src.

#

This is rather a lack of knowing how typescript works on your part then

young oliveBOT
#

Thank you for marking this question as solved!

Question Message ID

1120053956639465523

Solution Message ID

1120053956639465523

cosmic shard
#

Documentation isn't wrong. It just assumed you have basic NodeJS knowledge.

#

Good for you that you've been a lead Dev for so long. Too bad you don't know such basic concepts then. Maybe go back to studying instead of relying on skills you learned 20 years ago.

eager flume
#

Well now I'm interested in what they said >:(

cosmic shard
#

Basically they had the main wrong and they were being hostile about me pointing it out in a combination of when I pointed out they changed it from how the Cli generated it and then they said something along the lines of that they have been a lead developer for 20 years and our documentation sucks @eager flume

eager flume