TwurpleAuthenticationGetting dataExamplesFAQMigration

CreateBotCommandOptions

Options for a bot command.

{
Alternative names for the command that can be used to call it.
aliases?: string[]
The interval in which expired cooldown data should be cleared, in seconds. Defaults to 10 minutes.
The cooldown of the command for everyone, in seconds.
Whether the command name should be case-insensitive. Case-sensitive by default.
ignoreCase?: boolean
The cooldown of the command per user, in seconds.
userCooldown?: number
}

Properties

aliases

Type: ?string[]

Alternative names for the command that can be used to call it.

cooldownCleanupRate

Type: ?number

The interval in which expired cooldown data should be cleared, in seconds. Defaults to 10 minutes.

globalCooldown

Type: ?number

The cooldown of the command for everyone, in seconds.

ignoreCase

Type: ?boolean

Whether the command name should be case-insensitive. Case-sensitive by default.

userCooldown

Type: ?number

The cooldown of the command per user, in seconds.