(Callbacks)
Callbacks Types
Callback<T = unknown>: (destructureThis: { client: AFKHandler<T>; args: string[]; message: Message; }, gadget: AFKHandler<T>["gadget"] ) => Awaited<unknown>;
SlashCallback<T= unknown>: (destructureThis: { client: AFKHandler<T>; interaction: CommandInteraction; member: GuildMember; guild: Guild; user: User; }, gadget: AFKHandler<T>["gadget"] ) => Awaited<unknown>;
EventCallback<V extends keyof ClientEvents, T = unknown>: (destructureThis: { client: AFKHandler<T>; gadget: AFKHandler<T>["gadget"]; }, ...parameters: ClientEvents[V]) => DJSAwaited<void>;
FeatureCallback<T = unknown>: (destructureThis: { client: AFKHandler<T>; gadget: AFKHandler<T>["gadget"]; }) => Awaited<unknown>;
Last updated
Was this helpful?