gab
gab
SIASapphire - Imagine a framework
Created by gab on 9/12/2023 in #sapphire-support
Listeners not working at all
So I've been having this issue recently, none of the listeners on the listeners folder seem to work and I can't find a reason that would cause this to happen. My folder structure is:
src/
├── index.ts
└── listeners
└── ready.ts
src/
├── index.ts
└── listeners
└── ready.ts
The listener:
import { Events, Listener } from '@sapphire/framework';

export class ReadyListener extends Listener<typeof Events.Debug> {
public override run() {
console.log('ready');
}
}
import { Events, Listener } from '@sapphire/framework';

export class ReadyListener extends Listener<typeof Events.Debug> {
public override run() {
console.log('ready');
}
}
Index file:
import { SapphireClient } from '@sapphire/framework';

const client = new SapphireClient({
intents: ['Guilds']
});

client.login('...');
import { SapphireClient } from '@sapphire/framework';

const client = new SapphireClient({
intents: ['Guilds']
});

client.login('...');
It's really the most basic bot ever so this is really weird, any help will be appreciated ^^
8 replies