The Akairo client.
Options.
Protected Readonly[brandThis field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter
Collection of command aliases.
OptionalaliasRegular expression to automatically make command aliases for.
Whether or not mentions are allowed for prefixing.
Default argument options.
Automatically defer messages "BotName is thinking".
Whether or not to automate category names.
Specify whether to register all slash commands when starting the client
Whether or not to block bots.
Whether or not to block self.
Categories, mapped by ID to Category.
Class to handle.
The Akairo client.
Whether or not message.util is assigned.
Milliseconds a message should exist for before its command util instance is marked for removal.
Collection of CommandUtils.
Time interval in milliseconds for sweeping command util instances.
Collection of cooldowns.
Default cooldown for commands.
The main directory to modules.
Whether or not to require the use of execSlash for slash commands.
File extensions to load.
Whether or not members are fetched on each message author from a guild.
Whether or not edits are handled.
ID of user(s) to ignore cooldown or a function to ignore.
ID of user(s) to ignore userPermissions checks or a function to ignore.
Inhibitor handler to use.
Function that filters files when loading.
Modules loaded, mapped by ID to AkairoModule.
The prefix(es) for command parsing.
Collection of prefix overwrites to commands.
Collection of sets of ongoing argument prompts.
The type resolver.
Whether or not to skip built in reasons post type inhibitors so you can make custom ones.
Whether or not to store messages in CommandUtil.
Show "BotName is typing" information message on the text channels when a command is running.
Adds an ongoing prompt in order to prevent command usage in the channel.
Channel to add to.
User to add.
Handles errors from the handling.
The error.
Message that called the command.
Optionalcommand: CommandCommand that errored.
Handles a message.
Message to handle.
Handles autocomplete interactions.
The interaction to handle.
Handles conditional commands.
Message to handle.
Handles normal commands.
Message to handle.
Content of message without command.
Command instance.
Ignore inhibitors and other checks.
Handles regex and conditional commands.
Message to handle.
Handles regex commands.
Message to handle.
Handles a slash command.
Interaction to handle.
Checks if there is an ongoing prompt.
Channel to check.
User to check.
Reads all modules from a directory and loads them.
Directory to load from. Defaults to the directory passed in the constructor.
Filter for files, where true means it should be loaded. Defaults to the filter passed in the constructor.
Parses the command and its argument list.
Message that called the command.
Parses the command and its argument list using prefix overwrites.
Message that called the command.
Runs parseWithPrefix on multiple prefixes and returns the best parse.
Message to parse.
Pairs of prefix to associated commands. That is, [string, Set<string> | null][].
Tries to parse a message with the given prefix and associated commands. Associated commands refer to when a prefix is used in prefix overrides.
Message to parse.
Prefix to use.
Associated commands.
Registers a module.
Module to use.
Filepath of module.
ProtectedregisterRegisters interaction commands.
Reloads all modules.
Removes all modules.
Optionalevent: KOptionalevent: string | symbolRemoves an ongoing prompt.
Channel to remove from.
User to remove.
Runs inhibitors with the all type.
Message to handle.
Whether or not the command should is a slash command.
Runs a command.
Message to handle.
Command to handle.
Arguments to use.
Runs cooldowns and checks if a user is under cooldown.
Message that called the command.
Command to cooldown.
Runs permission checks.
Message that called the command.
Command to cooldown.
Whether or not the command is a slash command.
Runs permission checks.
Message that called the command.
Command to cooldown.
Whether or not the command is a slash command.
Runs inhibitors with the post type.
Message to handle.
Command to handle.
Optionalslash: falseWhether or not the command should is a slash command.
Runs inhibitors with the post type.
Message to handle.
Command to handle.
Whether or not the command should is a slash command.
Runs inhibitors with the pre type.
Message to handle.
ProtectedsetupSet up the command handler
Sweep command util instances from cache and returns amount sweeped.
Messages older than this will have their command util instance sweeped. This is in milliseconds and defaults to the commandUtilLifetime option.
Set the context menu command handler to use.
The context menu command handler.
Set the inhibitor handler to use.
The inhibitor handler.
Set the listener handler to use.
The listener handler.
Set the task handler to use.
The task handler.
StaticlistenerStaticonOptionaloptions: AbortableMethodsStaticonceOptionaloptions: AbortableMethodsStaticreaddirReads files recursively from a directory.
Directory to read.
Loads commands and handles messages.