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.
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.

userCooldown

Type: ?number

The cooldown of the command per user, in seconds.