# README
The commands plugin handles the configuration of the global command settings.
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
Keys and other sensitive information shouldnt be sent in error messages, but just in case it is.
Channel override handlers.
No description provided by the author
CommonContainerNotFoundHandler is a common "NotFound" handler that should be used with dcmd containers it ensures that no messages is sent if none of the commands in te container is enabeld if "fixedMessage" is empty, then it shows default generated container help.
Since we can't put permissions on subcommands we do a similar thing we do to command settings that is.
No description provided by the author
No description provided by the author
GetAllOverrides returns all channel overrides and ensures the global override with atleast a default is present.
No description provided by the author
No description provided by the author
Servers the command page with current config.
No description provided by the author
Command handlers.
No description provided by the author
No description provided by the author
Handles the updating of global and per channel command settings.
No description provided by the author
No description provided by the author
No description provided by the author
IsSlashCommandPermissionCommandEnabled following up on the no per channel permissions for slash commands This might seem like a mouthfull but essentially for us to be able to disable a command in a guild it has to be disabled in all channels.
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
register containers seperately as they need special handling
note: we could infer all the info from the members of the container but i felt that this explicit method was better and less quirky.
Returns 2 functions to execute commands in user or bot context with limited about of commands executed.
No description provided by the author
# 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
No description provided by the author
No description provided by the author
# Variables
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
These functions are called on every message, and should return true if the message should be checked for commands, false otherwise.
go:embed assets/commands.html.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
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
MemberArg matches a id or mention and returns a MemberState object for the user.
No description provided by the author
RoleArg matches an id or name and returns a discordgo.Role.
No description provided by the author
Slight extension to the simplecommand, it will check if the command is enabled in the HandleCommand func And invoke a custom handlerfunc with provided redis client.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PublicError is a error that is both logged and returned as a response.
No description provided by the author
UserError is a special error type that is only sent as a response, and not logged.