discord

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordClient

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

func NewDiscordClient

func NewDiscordClient(logger *zap.Logger) (*DiscordClient, error)

Constructs new Discord Client

func (*DiscordClient) Start

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

Initiates websocket connection with Discord and starts listening

type MessageEvent added in v0.3.3

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