Skip to main content

ODTextCommandBuilder interface

under construction

We are still working the API Reference! This page might be incomplete or doesn't contain all details!

Overview

The builder for text commands. Here you can add options to the command.

View Source

Properties


optional allowBots boolean boolean

Are bots allowed to execute this command?

View Source


optional allowedGuildIds array string[]

When specified, only allow this command to be executed in the following guilds

View Source


optional dmPermission boolean boolean

Is this command allowed in dm?

View Source


optional guildPermission boolean boolean

Is this command allowed in guilds?

View Source


name string string

The name of this command (can include spaces for subcommands)

View Source


optional options array api.ODTextCommandBuilderOption[]

The options for this text command (like slash commands)

View Source


prefix string string

The prefix of this command

View Source