discrot

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 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 Bot

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

func New

func New(session *discordgo.Session) *Bot

func (*Bot) AddGlobalSlashCommand

func (bot *Bot) AddGlobalSlashCommand(slashCommands ...SlashCommand) *Bot

func (*Bot) AddGuildSlashCommand

func (bot *Bot) AddGuildSlashCommand(guildId string, slashCommands ...SlashCommand) *Bot

func (*Bot) AddSelectMenu

func (bot *Bot) AddSelectMenu(selectMenus ...SelectMenu) *Bot

func (*Bot) Destroy

func (bot *Bot) Destroy() error

func (*Bot) Init

func (bot *Bot) Init() error

type SelectMenu

type SelectMenu struct {
	CustomId string
	Handler  func(session *discordgo.Session, interactionCreate *discordgo.InteractionCreate)
}

type SlashCommand

type SlashCommand struct {
	Command *discordgo.ApplicationCommand
	Handler func(session *discordgo.Session, interactionCreate *discordgo.InteractionCreate)
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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