reminders

package
v1.20.6 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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