abstract class HelpCommand extends CommandController
The basic structure for a help command. Only accepts commands that use StructuredPrefixParser.
- Source
- HelpCommand.scala
- Alphabetic
- By Inheritance
- HelpCommand
- CommandController
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HelpCommand(requests: requests.Requests)
Abstract Value Members
- abstract def createReplyAll(message: Message, page: Int)(implicit c: CacheSnapshot): Future[CreateMessageData]
Create a reply for all the commands tracked by this help command.
Create a reply for all the commands tracked by this help command.
- page
The page to use. Starts at 0.
- returns
Data to create a message describing the commands tracked by this help command.
- abstract def createSearchReply(message: Message, query: String, matches: Seq[HelpCommandProcessedEntry])(implicit c: CacheSnapshot): Future[CreateMessageData]
Create a reply for a search result
Create a reply for a search result
- matches
All the commands that matched the arguments
- returns
Data to create a message describing the search
Concrete Value Members
- val Command: CommandBuilder[UserCommandMessage, NotUsed]
The default command builder you will use to create most of your commands.
The default command builder you will use to create most of your commands. By default blocks bots from using the commands.
- Definition Classes
- CommandController
- val GuildCommand: CommandBuilder[GuildMemberCommandMessage, NotUsed]
Another default command builder for you to use.
Another default command builder for you to use. Can only be used in guilds, and includes the guild, guild channel and user of the command.
- Definition Classes
- CommandController
- val GuildVoiceCommand: CommandBuilder[VoiceGuildMemberCommandMessage, NotUsed]
A command builder that only accepts users that are in a voice channel.
A command builder that only accepts users that are in a voice channel.
- Definition Classes
- CommandController
- val baseCommandBuilder: CommandBuilder[CommandMessage, NotUsed]
The base command builder that you can build off if you don't like the default provided builder.
The base command builder that you can build off if you don't like the default provided builder.
- Definition Classes
- CommandController
- val command: ComplexCommand[Option[Args], NotUsed]
- def defaultMentionOrPrefix: Boolean
Determines the default value for mention or prefix when creating a named command.
Determines the default value for mention or prefix when creating a named command.
- Definition Classes
- CommandController
- def defaultMustMention: Boolean
Determines the default value for if a mention should required.
Determines the default value for if a mention should required.
- Definition Classes
- CommandController
- implicit val ec: ExecutionContext
- Definition Classes
- CommandController
- implicit def findCache[A](implicit message: CommandMessage[A]): CacheSnapshot
- Definition Classes
- CommandController
- def registerCommand(prefix: StructuredPrefixParser, description: CommandDescription, done: Future[Done]): Unit
- val requestHelper: requests.RequestsHelper
- Definition Classes
- CommandController
- val requests: requests.Requests
- Definition Classes
- CommandController
- def unknownCmd(command: String): Option[CreateMessageData]