discord

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discord

type Discord interface {
	AddReadyHandler(func(*discordgo.Session, *discordgo.Ready))
	AddMessageHandler(func(*discordgo.Session, *discordgo.MessageCreate))
	AddReactionHandler(func(*discordgo.Session, *discordgo.MessageReactionAdd))
	Run() error
	Close() error
}

Discord contains all basic discord function.

func New

func New(token string) (Discord, error)

New to create new discord client.

Jump to

Keyboard shortcuts

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