Skip to main content
Module

x/harmony/mod.ts>CommandClientOptions

An easy to use Discord API Library for Deno.
Latest
interface CommandClientOptions
implements ClientOptions
import { type CommandClientOptions } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Command Client options extending Client Options to provide a lot of Commands-related customizations

Properties

prefix: PrefixType

Global prefix(s) of the bot. Can be a string, a regular expression, or an array including either.

optional
mentionPrefix: boolean

Whether to enable mention prefix or not.

optional
getGuildPrefix: (guildID: string) => PrefixReturnType

Method to get a Guild's custom prefix(s).

optional
getUserPrefix: (userID: string) => PrefixReturnType

Method to get a User's custom prefix(s).

optional
getChannelPrefix: (channelID: string) => PrefixReturnType

Method to get a Channel's custom prefix(s).

optional
isGuildBlacklisted: (guildID: string) => boolean | Promise<boolean>

Method to check if certain Guild is blacklisted from using Commands.

optional
isUserBlacklisted: (userID: string) => boolean | Promise<boolean>

Method to check if certain User is blacklisted from using Commands.

optional
isChannelBlacklisted: (channelID: string) => boolean | Promise<boolean>

Method to check if certain Channel is blacklisted from using Commands.

optional
spacesAfterPrefix: boolean

Allow spaces after prefix? Recommended with Mention Prefix ON.

optional
owners: string[]

List of Bot's Owner IDs whom can access ownerOnly commands.

optional
allowBots: boolean

Whether to allow Bots to use Commands or not, not allowed by default.

optional
allowDMs: boolean

Whether to allow Commands in DMs or not, allowed by default.

optional
caseSensitive: boolean

Whether Commands should be case-sensitive or not, not by default.

optional
globalCommandCooldown: number

Global command cooldown in MS

optional
globalCooldown: number

Global cooldown in MS