Documentation ¶
Index ¶
- func CheckCommandChannel(next dgc.ExecutionHandler) dgc.ExecutionHandler
- func CheckGuildPermissions(flag, format string, permissions ...int) dgc.Middleware
- func CheckInternalPermissions(flag, format string, permissions ...users.Permission) dgc.Middleware
- func InjectGuildObject(next dgc.ExecutionHandler) dgc.ExecutionHandler
- func InjectUserObject(next dgc.ExecutionHandler) dgc.ExecutionHandler
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.
Click to show internal directories.
Click to hide internal directories.