guild

package
v0.0.0-...-5bff2fc Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	ID          string
	Prefix      string
	ForceUpdate bool
}

type Worker

type Worker struct {
	Inbound        chan *discordgo.Message
	Messages       chan *discordgo.Message
	ReactionAdd    chan *discordgo.MessageReactionAdd
	ReactionRemove chan *discordgo.MessageReactionRemove

	End context.CancelFunc
	// contains filtered or unexported fields
}

func New

func New(s *discordgo.Session, gID string, ctx context.Context) *Worker

func (*Worker) ID

func (w *Worker) ID() string

func (*Worker) IsWorker

func (w *Worker) IsWorker(guildID string) bool

func (*Worker) Process

func (w *Worker) Process()

func (*Worker) RefreshStores

func (w *Worker) RefreshStores(c *firebase.Client, isFirstRefresh bool) error

func (*Worker) SyncStores

func (w *Worker) SyncStores(c *firebase.Client) error

func (*Worker) WithPlugins

func (w *Worker) WithPlugins(p ...plugins.Plugin) *Worker

Jump to

Keyboard shortcuts

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