📕
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. Classes

Feature

PreviousEventNextCommands

Last updated 3 years ago

Was this helpful?

class Feature<T = unknown> implements <T>

constructor(options: <T>)

const { Feature } = require("afkhandler");

export default new Feature({
  run({ client, gadget }) {
    // run can be execute, callback, fire or emit
    console.log("Hello World!");
  },
});
import { Feature } from "afkhandler";

export default new Feature({
  run({ client, gadget }) {
    // run can be execute, callback, fire or emit
    console.log("Hello World!");
  },
});
FeatureInterface
FeatureInterface