package
0.8.3
Repository: https://github.com/codemicro/dgo-toolkit.git
Documentation: pkg.go.dev

# Functions

NewKit creates a new Kit instance.
RestrictionByChannel creates a CommandRestriction that requires the command to have been sent in a channel with a given ID.
RestrictionByRole creates a CommandRestriction that requires the commanding guild member to have a given role ID.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ChannelMention will validate a Discord channel mention and return the channel ID from that.
DiscordSnowflake will validate a Discord snowflake and return a string value.
Duration will parse a single duration in the form 1d2h3m4s.
Integer will parse a single integer.
RemainingString will parse a the remainder of the message as a string.
String will parse a single (quote enclosed) string.
URL will parse a single URL.

# Structs

Argument represents an argument in a command.
ArgumentInfo contains textual information about a command argument.
Command represents a command.
CommandInfo contains textual information about a command.
No description provided by the author
Kit is the core model for command parsing and routing.
No description provided by the author
No description provided by the author
Reaction represents a new reaction handler.
No description provided by the author

# Interfaces

ArgumentType defines a possible argument, how to parse it and generates relevant help text.

# Type aliases

CommandRestriction is a function that returns true if a command can be run based on the current state (eg.
No description provided by the author
No description provided by the author
ReactionEvent represents a the type of reaction event that has been triggered.
No description provided by the author