discord

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordManager added in v0.4.5

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

DiscordManager is responsible for interfacing with the discord session

func NewDiscordManager added in v0.4.5

func NewDiscordManager(logger *zap.Logger) (*DiscordManager, error)

Constructs new Discord Manager

func (*DiscordManager) IsReady added in v0.4.5

func (d *DiscordManager) IsReady() bool

func (*DiscordManager) Start added in v0.4.5

func (d *DiscordManager) Start(ctx context.Context) error

Initiates websocket connection with Discord and starts listening

type MessageEvent

type MessageEvent struct {
	CreatedAt      time.Time
	UUID           string
	AuthorId       string
	AuthorUsername string
	MessageId      string
	Command        string
	ChannelId      string
	ServerID       string
}

A MessageEvent is created when we receive a message that requires our attention

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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