discord

package
v0.0.0-...-30e58cd Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfg *config.DiscordConfig) (*Client, error)

func (*Client) Shutdown

func (c *Client) Shutdown() error

func (*Client) Start

func (c *Client) Start(h Handler, com Command) error

type Command

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

func NewCommands

func NewCommands(service *service.Services) *Command

func (*Command) HelloWorld

func (c *Command) HelloWorld(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*Command) PingCommand

func (c *Command) PingCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*Command) RegisterCommands

func (c *Command) RegisterCommands(s *discordgo.Session)

func (*Command) UnregisterCommands

func (c *Command) UnregisterCommands(s *discordgo.Session)

type Handler

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

func NewHandlers

func NewHandlers(commands *Command) *Handler

func (*Handler) RegisterHandlers

func (h *Handler) RegisterHandlers(s *discordgo.Session)

Jump to

Keyboard shortcuts

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