# Base Command Properties
All the properties that belong to the BaseCommand
instance.
Property | Description | Type Values | Optional |
---|---|---|---|
client | The AbrevioClient instance that this command belongs to | AbrevioClient | ❌ |
name | The name for this command | string | ❌ |
aliases | The aliases for this command | string[] | ✔️ |
editable | Whether or not this command should be respondant to edited messages | boolean | ✔️ |
description | The description for this command | function or string | ✔️ |
usage | The usage for this command; the correct usage format | function or string | ✔️ |
group | The group this command belongs to | function or string | ✔️ |
userPerms | The permissions that this user needs to have in order to execute the command. Or some, depending on the BaseCommand#allUser boolean. | PermissionResolvable[] | ✔️ |
clientPerms | Permissions that the client needs to have in order to execute the command. Or some, depending on the BaseCommand#allClient boolean. | PermisionResolvable[] | ✔️ |
adminOnly | Whether this command is only usable by members with the ADMINISTRATOR permission flag. | boolean | ✔️ |
ownerOnly | Whether this command is only usable by the client's developer(s)/owner(s) | boolean | ✔️ |
allUser | Whether the user who executed the command needs all the permissions from BaseCommand#userPerms or not. | boolean | ✔️ |
allClient | Whether the client needs all the permissions from BaseCommand#clientPerms or not. | boolean | ✔️ |
nsfw | Whether or not this command is only usable in a channel that's flagged as NSFW | boolean | ✔️ |
enabled | Whether this command should be considered as enabled or not. | boolean | ✔️ |
cooldown | The time that the user needs to wait before they can execute the command again. | number | ✔️ |
typing | Whether or not the client should display as if it were typing before executing the command. | boolean | ✔️ |