modulepackage
0.0.0-20210225233224-ef9350626165
Repository: https://github.com/tevo45/discordgo-utils.git
Documentation: pkg.go.dev
# README
DiscordGo Utilities
This package provides miscellaneous utilities for Discord chatbots that follow the typical prefixed command → response
paradigm (I just made that up). Everyhing in this repository was written out of necessity, and may not cover your specific use case. If you have some "special needs", or wrote some code that you think would fit here, please fell free to open an issue or pull request.
This README is yet to be further expanded to include features, instalation and examples. But I'm way too lazy to do it now. Oh well...
# Functions
Creates a command from a given function fn, with help as the help string, and errHandler as an optional error handler.
Checks if user with ID userID is owner of guild with ID guildID
.
Checks if a given member with ID userID has permissions permission on guild with ID guildID
.
Same as Command, but it panics if an error is encountered
.
Same as PredicatedCommand, but it panics if an error is encountered
.
Same as Command, but also takes a predicate struct.
Creates an empty command register
.
# Structs
No description provided by the author
No description provided by the author
Describes in which condition a command may be executed.
No description provided by the author
Command backed by a Go function.
Argument parser failure Why (probably) has more information about what actually happened
.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author