Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOnCooldown = errors.New("command is on cooldown") ErrChannelNotNSFW = errors.New("this command can only be used in an NSFW channel") )
Errors
Functions ¶
func CatchReply ¶
CatchReply returns a function that prints the message you pass it
func Permission ¶
func Permission(permission int) router.MiddlewareFunc
Permission validates the permission level
func RequireNSFW ¶
func RequireNSFW(catch CatchFunc) router.MiddlewareFunc
RequireNSFW requires a message to be sent from an NSFW channel
Types ¶
Click to show internal directories.
Click to hide internal directories.