Package io.facet.chatcommands
Types
ChatCommand
Link copied to clipboard
abstract class ChatCommand(name: String, aliases: Set<String>, scope: Scope, category: String, description: String?, discordPermsRequired: PermissionSet, usage: CommandUsage?)
Content copied to clipboard
ChatCommandSource
Link copied to clipboard
class ChatCommandSource(event: MessageCreateEvent, command: String, prefixUsed: String, scope: CoroutineScope) : CoroutineScope
Content copied to clipboard
Command source for chat commands. Provides easy access to the message event objects.
CommandUsage
Link copied to clipboard
class CommandUsage(usageMap: Map<String, String>) : Iterable<CommandUsage.Pair>
Content copied to clipboard
CommandUsageBuilder
Link copied to clipboard
DSLCommandNode
Link copied to clipboard
SuspendCommand
Link copied to clipboard
Functions
commandUsage
Link copied to clipboard
Note: this DSL is experimental and subject to change.
executeSuspend
Link copied to clipboard
suspend fun CommandDispatcher<ChatCommandSource>.executeSuspend(parseResults: ParseResults<ChatCommandSource>): Int
Content copied to clipboard
getBool
Link copied to clipboard
getChannels
Link copied to clipboard
fun CommandContext<ChatCommandSource>.getChannels(name: String): TextChannelSelector
Content copied to clipboard
getDouble
Link copied to clipboard
getFloat
Link copied to clipboard
getInt
Link copied to clipboard
getLong
Link copied to clipboard
getMembers
Link copied to clipboard
fun CommandContext<ChatCommandSource>.getMembers(name: String): MemberSelector
Content copied to clipboard
getRoles
Link copied to clipboard
fun CommandContext<ChatCommandSource>.getRoles(name: String): RoleSelector
Content copied to clipboard
getSnowflake
Link copied to clipboard
fun CommandContext<ChatCommandSource>.getSnowflake(name: String): Snowflake
Content copied to clipboard
getString
Link copied to clipboard
respondEmbed
Link copied to clipboard
Content copied to clipboard
Sends an embed based on the EmbedCreateSpec in the channel that the command was invoked in.
suspend fun ChatCommandSource.respondEmbed(builder: EmbedBuilder.() -> Unit): Message
Content copied to clipboard
Builds an EmbedCreateSpec and sends it in the channel that the command was invoked in.
respondMessage
Link copied to clipboard
suspend fun ChatCommandSource.respondMessage(template: MessageCreateSpec): Message
Content copied to clipboard
Sends a message based on the MessageCreateSpec in the channel that the command was invoked in.
suspend fun ChatCommandSource.respondMessage(vararg specs: EmbedCreateSpec): Message
Content copied to clipboard
Sends an embed based on the EmbedCreateSpec in the channel that the command was invoked in.
suspend fun ChatCommandSource.respondMessage(builder: MessageBuilder.() -> Unit): Message
Content copied to clipboard
Builds a MessageCreateSpec and sends it in the channel that the command was invoked in.
Builds a message spec with only content and sends it in the channel the command was invoked in.
Properties
aliasUsed
Link copied to clipboard