discord

package
v0.0.0-...-0d72df9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackHandler

type CallbackHandler func(s *discordgo.Session, m *discordgo.MessageCreate) error

type DiscordService

type DiscordService struct {
	Session *discordgo.Session
}

func NewService

func NewService(token string) (*DiscordService, error)

func (*DiscordService) CommandMessageCreateHandler

func (ds *DiscordService) CommandMessageCreateHandler(callback CallbackHandler, prefix string)

func (*DiscordService) Connect

func (ds *DiscordService) Connect() error

func (*DiscordService) Disconnect

func (ds *DiscordService) Disconnect() error

Jump to

Keyboard shortcuts

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