Observed behaviour
I'm developing my own bot and when I use Events.GuildCreate from @fluxerjs/core, the bot lists all guilds it's in every time I start the bot.
Reproduction steps
register the event by calling it on the client, then execute it. here is my event file
Here is a back-to-back test run
import { Events } from "@fluxerjs/core" ;
const guildCreateEvent = {
event : Events . GuildCreate ,
execute : async ( client : any , guild : any ) => {
console . log ( `Joined guild: ${ guild . name } (ID: ${ guild . id } )` );
},
};
export default guildCreateEvent ; * Executing task: npm run start
npm notice run fluxer-getting-started-bot@1.0.0 start
npm notice run tsx src/index.ts
Getting Started Bot is connected to Fluxer.
Command prefix: !
Joined guild: Getting Started (ID: 1548890981661671424)
* The terminal process 'npm run start'" terminated with exit code: 512.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: npm run start
npm notice run fluxer-getting-started-bot@1.0.0 start
npm notice run tsx src/index.ts
Getting Started Bot is connected to Fluxer.
Command prefix: !
Joined guild: Getting Started (ID: 1548890981661671424) Build information
"@fluxerjs/core": "^3.0.0"
Platform
API