reminders

package
v1.19.13 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 14 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 added in v1.4.1

func (p *Plugin) AddCommands()

func (*Plugin) BotInit added in v1.4.1

func (p *Plugin) BotInit()

func (*Plugin) PluginInfo added in v1.17.0

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