discord

package
v0.0.0-...-20b52b3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidInteractionType = errors.New("interaction type is not handled")
)

Functions

This section is empty.

Types

type Impl

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

func New

func New(token string, shardID, shardCount int, commands []commands.DiscordCommand) (*Impl, error)

func (*Impl) Listen

func (service *Impl) Listen() error

func (*Impl) Shutdown

func (service *Impl) Shutdown()

type Service

type Service interface {
	Listen() error
	Shutdown()
}

Jump to

Keyboard shortcuts

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