cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCustomID

func FromCustomID(customID string) (string, []string)

func ToApplicationCommand

func ToApplicationCommand(h Handler) *discordgo.ApplicationCommand

func UserID

Types

type Handler

type Handler interface {
	Name() string
	Handle(s *discordgo.Session, i *discordgo.InteractionCreate) error
}

func NewPing

func NewPing() Handler

func NewSubscribe

func NewSubscribe(db db.DB, sendico *sendico.Client, emojis *emoji.Store) Handler

func NewSubscriptions

func NewSubscriptions(db db.DB, emojis *emoji.Store) Handler

func NewUnsubscribe

func NewUnsubscribe(db db.DB) Handler

type Subscribe

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

func (*Subscribe) Description

func (cmd *Subscribe) Description() string

func (*Subscribe) Handle

func (*Subscribe) Name

func (cmd *Subscribe) Name() string

func (*Subscribe) Options

func (cmd *Subscribe) Options() []*discordgo.ApplicationCommandOption

type Subscriptions

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

func (*Subscriptions) Description

func (cmd *Subscriptions) Description() string

func (*Subscriptions) Handle

func (*Subscriptions) Name

func (cmd *Subscriptions) Name() string

type Unsubscribe

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

func (*Unsubscribe) Description

func (cmd *Unsubscribe) Description() string

func (*Unsubscribe) Handle

func (*Unsubscribe) Name

func (cmd *Unsubscribe) Name() string

Jump to

Keyboard shortcuts

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