std

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: BSD-3-Clause Imports: 5 Imported by: 13

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)

func NewMsgFilter

func NewMsgFilter(ctx context.Context, client disgord.Session) (filter *msgFilter, err error)

Types

type CurrentUserRESTResource added in v0.19.0

type CurrentUserRESTResource interface {
	CurrentUser() disgord.CurrentUserQueryBuilder
}

Jump to

Keyboard shortcuts

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