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

x/harmony/src/commands/mod.ts>CommandClientOptions

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

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

Properties

prefix: string | string[]

Global prefix(s) of the bot.

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: (guildID: string) => boolean | Promise<boolean>

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

optional
isChannelBlacklisted: (guildID: 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.