#Listeners won't fire up nor slash commands would register in the guild

1 messages · Page 1 of 1 (latest)

proven heath
#

I created a new bot and now the listeners won't fire up although the bot seems to be online? nor the commands get registered although it shows this

tame gulchBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

proven heath
#

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

blazing walrus
#

What is your main property in package.json?

proven heath
#

"main": "dist/index.js",

#

used sapphire cli to build the project

#

ready event works

#

but not this

proven heath
#

does anyone have any idea about this

proven heath
#

So some intents were missing which you need on adding those it works

tame gulchBOT
#

Thank you for marking this question as solved!

Question Message ID

1101548844472340520

Solution Message ID

1101733320901005343