bot

package
v0.0.0-...-d090e66 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Intents = 0 |
	gateway.IntentGuilds

Intents is the set of intents that the bot needs.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(state *state.State, gitPool *gitwork.Pool) *Handler

New creates a new bot instance.

func (*Handler) HandleInteraction

func (h *Handler) HandleInteraction(ev *discord.InteractionEvent) *api.InteractionResponse

func (*Handler) OverwriteCommands

func (h *Handler) OverwriteCommands() error

OverwriteCommands overwrites the commands to the ones defined in Commands.

Jump to

Keyboard shortcuts

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