sdr

package
v0.0.0-...-56a85f5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 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 Gift

type Gift struct {
	Image       string `bson:"image" json:"image"`
	Description string `bson:"description" json:"desc"`
}

type SDR

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

SDR represents SDR plugin

func NewSDR

func NewSDR(texts map[int]string, gifts map[int]Gift) (*SDR, error)

func (*SDR) MessageCreate

func (r *SDR) MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)

type User

type User struct {
	UserID string     `bson:"user_id"`
	Gifts  []UserGift `bson:"gifts"`
}

type UserGift

type UserGift struct {
	Text string `bson:"text"`
	Gift Gift   `bson:"gift"`
}

Jump to

Keyboard shortcuts

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