📕
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

Features

Loads Features

PreviousEventsNextload

Last updated 3 years ago

Was this helpful?

public Features(dir: string, callback: (feature: , fileName: string) => <unknown>):

  • dir: features directory

  • callback: function executed when an event is loaded

client.Features(
    "src/features",
    (feature, file) 
    => console.log(`Loading feature from ${file}`)
  );

FeatureInterface
Awaited
this