slashcommands

package
v0.0.0-...-11d9664 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Stop

func Stop()

Types

type Cancel

type Cancel struct{}

func (Cancel) Description

func (p Cancel) Description() string

func (Cancel) Name

func (p Cancel) Name() string

func (Cancel) Options

func (p Cancel) Options() []*discordgo.ApplicationCommandOption

func (Cancel) RequiredPerm

func (p Cancel) RequiredPerm() *int64

func (Cancel) Run

type Credits

type Credits struct{}

func (Credits) Description

func (p Credits) Description() string

func (Credits) Name

func (p Credits) Name() string

func (Credits) Options

func (Credits) RequiredPerm

func (p Credits) RequiredPerm() *int64

func (Credits) Run

type Join

type Join struct{}

func (Join) Description

func (p Join) Description() string

func (Join) Name

func (p Join) Name() string

func (Join) Options

func (p Join) Options() []*discordgo.ApplicationCommandOption

func (Join) RequiredPerm

func (p Join) RequiredPerm() *int64

func (Join) Run

type Leave

type Leave struct{}

func (Leave) Description

func (p Leave) Description() string

func (Leave) Name

func (p Leave) Name() string

func (Leave) Options

func (p Leave) Options() []*discordgo.ApplicationCommandOption

func (Leave) RequiredPerm

func (p Leave) RequiredPerm() *int64

func (Leave) Run

type Link struct{}

func (Link) Description

func (p Link) Description() string

func (Link) Name

func (p Link) Name() string

func (Link) Options

func (p Link) Options() []*discordgo.ApplicationCommandOption

func (Link) RequiredPerm

func (p Link) RequiredPerm() *int64

func (Link) Run

type Predict

type Predict struct{}

func (Predict) Description

func (p Predict) Description() string

func (Predict) Name

func (p Predict) Name() string

func (Predict) Options

func (Predict) RequiredPerm

func (p Predict) RequiredPerm() *int64

func (Predict) Run

type Result

type Result struct{}

func (Result) Description

func (p Result) Description() string

func (Result) Name

func (p Result) Name() string

func (Result) Options

func (p Result) Options() []*discordgo.ApplicationCommandOption

func (Result) RequiredPerm

func (p Result) RequiredPerm() *int64

func (Result) Run

type SlashCommand

type SlashCommand interface {
	Name() string
	Description() string
	Run(s *discordgo.Session, i *discordgo.InteractionCreate)
	Options() []*discordgo.ApplicationCommandOption
	RequiredPerm() *int64
}
type Unlink struct{}

func (Unlink) Description

func (p Unlink) Description() string

func (Unlink) Name

func (p Unlink) Name() string

func (Unlink) Options

func (p Unlink) Options() []*discordgo.ApplicationCommandOption

func (Unlink) RequiredPerm

func (p Unlink) RequiredPerm() *int64

func (Unlink) Run

type Update

type Update struct{}

func (Update) Description

func (p Update) Description() string

func (Update) Name

func (p Update) Name() string

func (Update) Options

func (p Update) Options() []*discordgo.ApplicationCommandOption

func (Update) RequiredPerm

func (p Update) RequiredPerm() *int64

func (Update) Run

type Who

type Who struct{}

func (Who) Description

func (p Who) Description() string

func (Who) Name

func (p Who) Name() string

func (Who) Options

func (p Who) Options() []*discordgo.ApplicationCommandOption

func (Who) RequiredPerm

func (p Who) RequiredPerm() *int64

func (Who) Run

Jump to

Keyboard shortcuts

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