Ping command in the Guide does not work
I tried following the Getting started Guide for Sapphire but it seems like the bot wont register me sending @bot ping in a channel it has access to.
I am using Typescript, with the source being in src/ and being built to dist/. My Main property in the package.json is dist/index.js
Code should be the exact same. Is there a paste service i can use for samples?

10 Replies
I had added a info log after the super method to check if the command is being loaded and it seems like the framework can find the file.
so you're saying that the container.logger.info(...) line is executed but the rest isn't?
No, messageRun is not ran at all.
I meant something like this
I just had removed it
So the constructor is being called -> the file is found and registered by the framework
can you try putting that above everything else inside your messageRun and see if it executes? keep it inside that method but still above all the other code in it
I had the logger infront of the if statement, nothing
I had a debugger breakpoint on the if statement and even that did not trigger
can i see where you define your SapphireClient?
Sure, give me a second
This is the folder structure the client is defined in index.ts


this is my tsconfig so you know the compilationmapping
