Members
approvecommands.Command
Approve a submitted lesson plan in a lesson channel, either from a message command or a message reaction
Type
Source
archivecommands.Command
Archive a <TextChannel> by restricting channel visibility and moving it to a designated channel category
Type
Source
assigncommands.Command
Assign a lesson to specified instructors by creating a private lesson channel and dispatching a lesson warning
Type
Source
attendancecommands.Command
Process an attendance register by creating an attendance embed and sending it to the attendance and original message command channels
Type
Source
connectedcommands.Command
Type
Source
evaluatecommands.Command
Evaluate JavaScript code directly from a Discord message
Type
Source
helpcommands.Command
Type
Source
leavecommands.Command
Type
Source
leaveforcommands.Command
Process a leave request submitted on behalf of someone else
Type
Source
lessoncommands.Command
A family of sub-commands for an instructor to manage an existing lesson
Type
Source
pingcommands.Command
Calculate the latency of the bot
Type
Source
purgecommands.Command
Type
Source
restartcommands.Command
Type
Source
seencommands.Command
Type
Source
uptimecommands.Command
Display the bot's uptime
Type
Source
Type Definitions
BaseCommand
The base of each of Pronto's commands, with the base properties to construct a complete <Command>
Type
-
Object
Properties
-
command
commands.CommandName
The name of the command
-
aliases
Array.<string>
The aliases for the command
-
description
commands.CommandDescription
The <CommandDescription> object of the command
-
allowDirect
boolean
Whether to allow the command to execute from a direct message
-
requiredRoles
Array.<Discord.Snowflake>
A <Role.id[]> of which the <GuildMember> must have at least one to execute the command
-
deniedRoles
Array.<Discord.Snowflake>
A <Role.id[]> of which the <GuildMember> must have none to execute the command
-
developerOnly
boolean
Whether the command is only executable by the developer defined by
config.ids.DEVELOPER_ID
-
displayInList
boolean
Whether to display the command in the guild's commands list
-
help
Readonly.<string>
The help text to display for the command
-
error
Readonly.<?string>
The error text to display for the command
Source
BaseCommands
The base of Pronto's commands object, where each <BaseCommand> is stored in the <BaseCommands> object under the property [CommandName]
Type
-
Object.<commands.CommandName, commands.BaseCommand>
Source
Command
The complete <Command> object for one of Pronto's commands, with a <Command.execute()> method
Type
Properties
-
execute
commands.CommandExecute
The command's <Command.execute()> method
Source
CommandDescription
The description of the command, which may differ depending on whether the message command is qualified with a different <CommandName> as an argument
Type
-
Object
Properties
-
general
string
The description of the command, or the description to display in the command's base help text if the command supports a dynamic description
-
unqualified
string
<nullable>
The description to display as the command's base description if the command supports a dynamic description
-
qualified
string
<nullable>
The description to display as the command's description if qualified with a different <CommandName>, if the command supports a dynamic description
Source
CommandExecute(parameters) → {Promise.<(void|Typings.Lesson)>}
A command's <Command.execute()> method
Parameters
-
parameters
commands.CommandParameters
The <CommandParameters> to execute this command
Returns
-
Promise.<(void|Typings.Lesson)>
Void, or the <Lesson> document
Source
CommandName
The name of the command
Type
-
string
Source
CommandParameters
An <Object> of the valid parameters accepted by the <Command.execute()> method
Type
-
Object
Properties
-
msg
Discord.Message
The <Message> that executed the <Command>, or the <Message> that the reaction collector was attached to
-
args
Array.<string>
<nullable>
The <string[]> containing the command arguments
-
msgCommand
string
<nullable>
The message argument that was parsed to this <BaseCommand>, i.e. either <BaseCommand.command> or <BaseCommand.aliases.includes(msgCommand)>
-
user
Discord.User
<nullable>
The <User> that triggered the reaction collector
Source
Commands
The complete <Commands> object for all of Pronto's commands, where each <Command> is stored in the <Commands> object under the property [CommandName]
Type
-
Object.<commands.CommandName, commands.Command>