📕
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?

(Callbacks)

PreviousCommandHelpNext(Utils)

Last updated 3 years ago

Was this helpful?

Callbacks Types

  • Callback<T = unknown>: (destructureThis: { client: <T>; args: string[]; message: ; }, gadget: <T>["gadget"] ) => <unknown>;

  • SlashCallback<T= unknown>: (destructureThis: { client: <T>; interaction: ; member: ; guild: ; user: ; }, gadget: <T>["gadget"] ) => <unknown>;

args is the message splitted by a space without the command name

  • EventCallback<V extends keyof ClientEvents, T = unknown>: (destructureThis: { client: <T>; gadget: <T>["gadget"]; }, ...parameters: ClientEvents[V]) => <void>;

  • FeatureCallback<T = unknown>: (destructureThis: { client: <T>; gadget: <T>["gadget"]; }) => <unknown>;

AFKHandler
Message
AFKHandler
Awaited
AFKHandler
CommandInteraction
GuildMember
Guild
User
AFKHandler
Awaited
AFKHandler
AFKHandler
DJSAwaited
AFKHandler
AFKHandler
Awaited