middlewares

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommandChannel

func CheckCommandChannel(next dgc.ExecutionHandler) dgc.ExecutionHandler

CheckCommandChannel checks whether or not the current channel is a command channel

func CheckGuildPermissions added in v1.2.0

func CheckGuildPermissions(flag, format string, permissions ...int) dgc.Middleware

CheckGuildPermissions checks if the current executor has got the given guild permission(s)

func CheckInternalPermissions added in v1.2.0

func CheckInternalPermissions(flag, format string, permissions ...users.Permission) dgc.Middleware

CheckInternalPermissions checks if the current user has got the given internal permission(s)

func InjectGuildObject added in v1.2.0

func InjectGuildObject(next dgc.ExecutionHandler) dgc.ExecutionHandler

InjectGuildObject injects the guild object of the current guild into the custom context objects

func InjectUserObject added in v1.2.0

func InjectUserObject(next dgc.ExecutionHandler) dgc.ExecutionHandler

InjectUserObject injects the user object of the message author into the custom context objects

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL