discordbot

package
v0.0.0-...-6e3b05f Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutocompleteHandler

type AutocompleteHandler func(option *discordgo.ApplicationCommandInteractionDataOption) [][]string

type Bot

type Bot struct {
	OnReady func(s *discordgo.Session)
	// contains filtered or unexported fields
}

func New

func New(token string, guildId string) (*Bot, error)

func (*Bot) AddAutocompleteHandler

func (b *Bot) AddAutocompleteHandler(key string, handler AutocompleteHandler)

func (*Bot) AddCommand

func (b *Bot) AddCommand(command *discordgo.ApplicationCommand, handler CommandHandler)

func (*Bot) RegisterCommands

func (b *Bot) RegisterCommands()

func (*Bot) Start

func (b *Bot) Start()

func (*Bot) UnregisterCommands

func (b *Bot) UnregisterCommands()

Jump to

Keyboard shortcuts

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