Skip to main content
Module

x/harmony/mod.ts>CategoriesManager

An easy to use Discord API Library for Deno.
Go to Latest
class CategoriesManager
import { CategoriesManager } from "https://deno.land/x/harmony@v2.7.0/mod.ts";

Constructors

new
CategoriesManager(client: CommandClient)

Properties

client: CommandClient
list: Collection<string, CommandCategory>

Methods

add(category: CommandCategory): CategoriesManager

Add a Category to the Manager

all(): Collection<string, CommandCategory>

Get a Collection of Categories

get(name: string): CommandCategory | undefined

Get a Category by name

has(category: string | CommandCategory): boolean

Check if a Category exists or not

names(): string[]

Get a list of names of Categories added

remove(category: string | CommandCategory): boolean

Remove a Category from the Manager