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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filterCommands(query: String)(implicit m: UserCommandMessage[_]): Future[Seq[HelpCommandProcessedEntry]]
- Attributes
- protected
- implicit def findCache[A](implicit message: CommandMessage[A]): CacheSnapshot
- Definition Classes
- CommandController
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def registerCommand(prefix: StructuredPrefixParser, description: CommandDescription, done: Future[Done]): Unit
- val registeredCommands: Set[HelpCommandEntry]
- Attributes
- protected
- def removeEntry(entry: HelpCommandEntry): Unit
- Attributes
- protected
- val requestHelper: requests.RequestsHelper
- Definition Classes
- CommandController
- val requests: requests.Requests
- Definition Classes
- CommandController
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unknownCmd(command: String): Option[CreateMessageData]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])