Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyMsgEvt ¶ added in v0.9.5
func CopyMsgEvt(evt interface{}) interface{}
CopyMsgEvt allows you to copy a message event such that you can edit the content using middlewares. if you don't create a copy, the same change will be present in _every_ other handler that depends on the same event type.
If you're making a bot, and you only care about the data after it has been processed, then there should be no need to create a copy. Just remember that you're dealing with pointer, and a change in one handler/middleware changes the data for every other handler/middleware.
func NewLogFilter ¶
func NewLogFilter(client logFilterdg) (filter *logFilter, err error)
Types ¶
type CurrentUserRESTResource ¶ added in v0.19.0
type CurrentUserRESTResource interface {
CurrentUser() disgord.CurrentUserQueryBuilder
}
Click to show internal directories.
Click to hide internal directories.