Interface CommandConfig

Base configuration for module parts



aliases?: string[]

List of alternative names

cooldown?: number

Minimum time (in seconds) between usages

description?: string

Description of the command

guildOnly?: boolean

If the command can only be executed in a guild

id: string

ID of the part

initFunction?: ((artibot: Artibot) => Promise<void>)

Type declaration

mainFunction: ((message: Message<boolean>, args: string[], artibot: Artibot) => Promise<void>)

Type declaration

name: string

Name of the command

ownerOnly?: boolean

If the command can only be executed by the owner of the bot

permissions?: PermissionResolvable

Required permissions

requiredArgs?: number

Minimum amount of arguments



requiresArgs?: boolean

Set to true if the command needs at least one argument


Use requiredArgs instead.

usage?: string

Help text on how to use the command

Generated using TypeDoc v0.23.28