#Listeners won't fire up nor slash commands would register in the guild
1 messages · Page 1 of 1 (latest)
anyone got any idea why my listener wont fire up
import { ApplyOptions } from '@sapphire/decorators';
import { Listener } from '@sapphire/framework';
import type { GuildMember } from 'discord.js';
@ApplyOptions<Listener.Options>({})
export class UserEvent extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) {
super(context, {
...options,
event: 'guildMemberAdd'
});
}
public override run(member: GuildMember) {
console.log('A new member joined', member);
}
}
just won't work?
why so
What is your main property in package.json?
"main": "dist/index.js",
used sapphire cli to build the project
ready event works
but not this
does anyone have any idea about this
So some intents were missing which you need on adding those it works
Thank you for marking this question as solved!
Question Message ID
1101548844472340520
Solution Message ID
1101733320901005343
Learn more