std

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMsgEvt

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

This section is empty.

Jump to

Keyboard shortcuts

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