-
Notifications
You must be signed in to change notification settings - Fork 0
Guild
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.
Name | Type | Description |
---|---|---|
applicationCommands | Cache | A Cache of all guild Commands available to the client. |
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
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
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
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