Optional
aliasReplacement?: RegExpOptional
allowMention?: boolean | MentionPrefixPredicateWhether or not to allow mentions to the client user as a prefix.
Optional
argumentDefaults?: DefaultArgumentOptionsDefault argument options.
Optional
autoDefer?: booleanAutomatically defer messages "BotName is thinking"
Optional
autoRegisterSlashCommands?: booleanSpecify whether to register all slash commands when starting the client.
Optional
blockBots?: booleanWhether or not to block bots.
Optional
blockClient?: booleanWhether or not to block self.
Optional
commandUtil?: booleanWhether or not to assign message.util
.
Optional
commandUtilLifetime?: numberMilliseconds a message should exist for before its command util instance is marked for removal.
If 0
, CommandUtil instances will never be removed and will cause memory to increase indefinitely.
Optional
commandUtilSweepInterval?: numberTime interval in milliseconds for sweeping command util instances.
If 0
, CommandUtil instances will never be removed and will cause memory to increase indefinitely.
Optional
defaultCooldown?: numberDefault cooldown for commands.
Optional
execSlash?: booleanWhether or not to require the use of execSlash for slash commands.
Optional
fetchMembers?: booleanWhether or not members are fetched on each message author from a guild.
Optional
handleEdits?: booleanWhether or not to handle edited messages using CommandUtil.
Optional
ignoreCooldown?: ArrayOrNot<Snowflake> | IgnoreCheckPredicateHandlerID of user(s) to ignore cooldown or a function to ignore. Defaults to the client owner(s).
Optional
ignorePermissions?: ArrayOrNot<Snowflake> | IgnoreCheckPredicateHandlerID of user(s) to ignore userPermissions
checks or a function to ignore.
Optional
prefix?: ArrayOrNot<string> | PrefixSupplierThe prefix(es) for command parsing.
Optional
skipBuiltInPostInhibitors?: booleanWhether or not to skip built in reasons post type inhibitors so you can make custom ones.
Optional
storeMessages?: booleanWhether or not to store messages in CommandUtil.
Optional
typing?: booleanShow "BotName is typing" information message on the text channels when a command is running.
Regular expression to automatically make command aliases. For example, using
/-/g
would mean that aliases containing-
would be valid with and without it. So, the aliascommand-name
is valid as bothcommand-name
andcommandname
.