aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 18:40:52 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 18:40:52 -0400
commit0ecad260c69fffa751fb5d245e0e4f804191970b (patch)
tree13e09ad73f68ebf4b121a491aeefcdb2c930746f /src/lib
parent9b5e4a0afef33927ba81032cedaeecf112991f2a (diff)
downloadtanzanite-0ecad260c69fffa751fb5d245e0e4f804191970b.tar.gz
tanzanite-0ecad260c69fffa751fb5d245e0e4f804191970b.tar.bz2
tanzanite-0ecad260c69fffa751fb5d245e0e4f804191970b.zip
okay jani
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushCommand.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommand.ts b/src/lib/extensions/discord-akairo/BushCommand.ts
index 073221d..548f921 100644
--- a/src/lib/extensions/discord-akairo/BushCommand.ts
+++ b/src/lib/extensions/discord-akairo/BushCommand.ts
@@ -139,8 +139,11 @@ export interface CustomBushArgumentOptions extends BaseBushArgumentOptions {
export type BushMissingPermissionSupplier = (message: BushMessage | BushSlashMessage) => Promise<any> | any;
export interface BushCommandOptions extends Omit<CommandOptions, 'userPermissions' | 'clientPermissions'> {
+ /** Whether the command is hidden from the help command. */
hidden?: boolean;
+ /** The channels the command is limited to run in. */
restrictedChannels?: Snowflake[];
+ /** The guilds the command is limited to run in. */
restrictedGuilds?: Snowflake[];
description: {
content: string;
@@ -149,9 +152,13 @@ export interface BushCommandOptions extends Omit<CommandOptions, 'userPermission
};
args?: BushArgumentOptions[] & CustomBushArgumentOptions[];
category: string;
+ /** A fake command, completely hidden from the help command. */
pseudo?: boolean;
+ /** Allow this command to be run in channels that are blacklisted. */
bypassChannelBlacklist?: boolean;
+ /** Permissions required by the client to run this command. */
clientPermissions?: PermissionResolvable | PermissionResolvable[] | BushMissingPermissionSupplier;
+ /** Permissions required by the user to run this command. */
userPermissions?: PermissionResolvable | PermissionResolvable[] | BushMissingPermissionSupplier;
}