Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.
Benbebop edited this page Feb 21, 2023 · 3 revisions

extends Guild

For an explanation of Guild see the main discordia article. This is just documenting the expansions made by Discordia Commands.

Instances of this class should not be constructed by users.

Properties

Name Type Description
applicationCommands Cache A Cache of all guild Commands available to the client.

Methods

newSlashCommand(name)

Parameter Type
name string

Creates a slash command in this guild. The name must be between 1 and 32 characters in length.

This method always makes an HTTP request at the end of the event loop.

Returns: Command


newUserCommand(name)

Parameter Type
name string

Creates a user command in this guild. The name must be between 1 and 32 characters in length.

This method always makes an HTTP request at the end of the event loop.

Returns: Command


newMessageCommand(name)

Parameter Type
name string

Creates a message command in this guild. The name must be between 1 and 32 characters in length.

This method always makes an HTTP request at the end of the event loop.

Returns: Command


getCommand(id)

Parameter Type
id Command-ID-Resolvable

Gets a command object by ID. If the object is already cached, then the cached object will be returned; otherwise, an HTTP request is made.

This method may make an HTTP request.

Returns: Command

Clone this wiki locally