Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/commands/command.ts>CommandCategory

An easy to use Discord API Library for Deno.
Go to Latest
class CommandCategory
import { CommandCategory } from "https://deno.land/x/harmony@v2.8.0/src/commands/command.ts";

Properties

optional
botPermissions: string | string[]

Permission(s) bot will need in order to execute Category Commands

description: string

Description of the Category.

optional
dmOnly: boolean

Whether the Category Commands can only be used in Bot's DMs (if allowed)

optional
guildOnly: boolean

Whether the Category Commands can only be used in Guild (if allowed in DMs)

name: string

Name of the Category.

optional
ownerOnly: boolean

Whether the Category Commands can only be used by Bot Owners

optional
permissions: string | string[]

Permissions(s) required by both User and Bot in order to use Category Commands

optional
roles: string | string[]

Role(s) user will require in order to use Category Commands. List or one of ID or name

optional
userPermissions: string | string[]

Permission(s) required for using Category Commands

optional
whitelistedChannels: string | string[]

Whitelisted Channels. Category Commands can be executed only in these channels. (List or one of IDs)

optional
whitelistedGuilds: string | string[]

Whitelisted Guilds. Only these Guild(s) can execute Category Commands. (List or one of IDs)

optional
whitelistedUsers: string | string[]

Whitelisted Users. Category Commands can be executed only by these Users (List or one of IDs)