discord

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package discord implements the discord bot daemon service.

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceClosed = errors.New("discord: Service closed")

ErrServiceClosed is returned by the Service's Serve method after a call to Shutdown.

Functions

This section is empty.

Types

type Discord

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

Discord represents a discord service in the application.

func New

func New(ctx context.Context, opts service.Options) *Discord

New returns a Discord struct.

func (*Discord) Serve

func (d *Discord) Serve() (err error)

Serve loop request message from the Discord api server. Serve always returns an error.

func (*Discord) Shutdown added in v0.16.0

func (d *Discord) Shutdown() error

Shutdown shuts down the Discord service.

Jump to

Keyboard shortcuts

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