reminders

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPlugin

func RegisterPlugin()

Types

type Plugin

type Plugin struct{}

func (*Plugin) AddCommands

func (p *Plugin) AddCommands()

func (*Plugin) BotInit

func (p *Plugin) BotInit()

func (*Plugin) PluginInfo

func (p *Plugin) PluginInfo() *common.PluginInfo

type Reminder

type Reminder struct {
	gorm.Model
	UserID    string
	ChannelID string
	GuildID   int64
	Message   string
	When      int64
}

func GetChannelReminders

func GetChannelReminders(channel int64) (results []*Reminder, err error)

func GetUserReminders

func GetUserReminders(userID int64) (results []*Reminder, err error)

func NewReminder

func NewReminder(userID int64, guildID int64, channelID int64, message string, when time.Time) (*Reminder, error)

func (*Reminder) ChannelIDInt

func (r *Reminder) ChannelIDInt() (i int64)

func (*Reminder) Trigger

func (r *Reminder) Trigger() error

func (*Reminder) UserIDInt

func (r *Reminder) UserIDInt() (i int64)

Jump to

Keyboard shortcuts

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