package
0.0.0-20211209175121-4e18fe87588a
Repository: https://github.com/mavolin/adam.git
Documentation: pkg.go.dev
# Functions
NewArgumentError returns a new *ArgumentError with the passed description.
NewArgumentErrorl returns a new *ArgumentError using the passed *i18n.Config to generate a description.
NewBotPermissionsError creates a new *BotPermissionsError with the passed missing permissions.
NewChannelTypeError creates a new *ChannelTypeError with the passed allowed plugin.ChannelTypes.
NewFatalRestrictionError creates a new fatal *RestrictionError with the passed description.
NewFatalRestrictionErrorl creates a new fatal *RestrictionError using the message generated from the passed *i18n.Config as description.
NewIDFromInvoke creates a new ID from the passed invoke.
NewRestrictionError creates a new *RestrictionError with the passed description.
NewRestrictionErrorl creates a new *RestrictionError using the message generated from the passed *i18n.Config as description.
NewThrottlingError creates a new *ThrottlingError with the passed description.
NewThrottlingErrorl creates a new *ThrottlingError using the message generated from the passed *i18n.Config as description.
# Constants
AllChannels is a combination of all ChannelTypes.
BuiltInSource is the name of the built-in plugin source.
DirectMessages is the ChannelTypes of a private chat (1).
GuildChannels is a combination of all ChannelTypes used in guilds, i.e.
GuildNewsChannels is the ChannelTypes of a news channel (5).
GuildTextChannels is the ChannelTypes of a regular guild text channel (0).
KindArg is the Kind used for argument.
KindFlag is the Kind used for flags.
PersistentGuildChannels are all non-thread guild channels.
RootID is the ID representing root, i.e.
Threads is the ChannelTypes of a thread (10, 11, 12).
# Variables
DefaultBotPermissionsError is an *BotPermissionsError that displays a generic "missing permissions" error message, instead of listing the missing permissions.
DefaultFatalRestrictionError is a restriction error with a default, generic description and Fatal set to true.
DefaultRestrictionError is a restriction error with a default, generic description.
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
# Structs
ArgumentError is the error used if an argument or flag a user supplied is invalid.
BotPermissionsError is the error returned if the bot does not have sufficient permissions to execute a command.
ChannelTypeError is the error returned if a command is invoked in a channel that is not supported by that command.
Context contains context information about a command.
ParseContext is the context passed to ArgType.Parse.
RestrictionError is the error returned if a restriction fails.
No description provided by the author
No description provided by the author
ThrottlingError is the error returned if a command gets throttled.
No description provided by the author
# Interfaces
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
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
ResolvedCommand is a resolved command as returned by a Provider.
No description provided by the author
Throttler is used to create cooldowns for commands.
# Type aliases
ArgKind specifies whether a flag or an argument is being parsed.
Args are the parsed arguments of a command.
ChannelTypes is an enum used to specify in which channel types the command may be executed.
No description provided by the author
Flags are the parsed flags of a command.
ID is the unique identifier of a plugin.
RestrictionFunc is the function used to determine if a user is authorized to use a command or module.