Ready Listener doesn't work

import { Events, Listener } from "@sapphire/framework";

export class ReadyListener extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) {
super(context, {
event: Events.ClientReady,
...options,
once: true,
});
}

public run() {
console.log("hello im running");
}
}
import { Events, Listener } from "@sapphire/framework";

export class ReadyListener extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) {
super(context, {
event: Events.ClientReady,
...options,
once: true,
});
}

public run() {
console.log("hello im running");
}
}
9 Replies
fenish
fenishOP2y ago
fenish
fenishOP2y ago
why its not working
fenish
fenishOP2y ago
Spinel
Spinel2y ago
- 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.
Favna
Favna2y ago
Specifically point 4 and 5
fenish
fenishOP2y ago
ahh my main was wrong i fixed it
fenish
fenishOP2y ago
btw how do i remove this lines are thoose loadApplicationCommandRegistriesStatusListeners or something else
Favna
Favna2y ago
set loadApplicationCommandRegistriesStatusListeners to false in your client options. That said, you really should be using application commands in anno 2023
fenish
fenishOP2y ago
i will use app commands but i don't want to get those messages
Want results from more Discord servers?
Add your server