📕
AFKHandler
  • Introduction
  • FAQ
  • Changelog
  • Classes
    • AFKHandler
    • Command
    • SlashCommand
    • Event
    • Feature
  • Methods
    • Commands
    • SlashCommands
    • deleteSlash
    • Events
    • Features
    • load
    • setCooldown
    • time
    • convert
    • convertLong
  • Types
  • AFKHandlerInteraface
  • AFKHandlerOptions
  • CommandInterface
  • SlashCommandInterface
  • EventInterface
  • FeatureInterface
  • CommandHelp
  • (Callbacks)
  • (Utils)
Powered by GitBook
On this page

Was this helpful?

  1. Methods

Events

Loads Events

PreviousdeleteSlashNextFeatures

Last updated 3 years ago

Was this helpful?

public Events(dir: string, callback?: (event: , file: string) => <unknown>):

  • dir: events directory

  • callback: function executed when an event is loaded

client.Events(
    "src/events",
    (event, file) 
    => console.log(`Loading event ${event.name}`)
  );

EventInterface
Awaited
this