messages

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID       string
	Username string
}

type Database

type Database interface {
	StoreChannelMessage(msg Message) error
}

type Message

type Message struct {
	ID              string
	ChannelID       string
	GuildID         string
	Timestamp       string
	EditedTimestamp string
	MessageAuthor   Author
}

type MessageState

type MessageState struct {
	Store Database
}

func NewMessageState

func NewMessageState(db Database) *MessageState

func (MessageState) MessageCreateEvent

func (msg MessageState) MessageCreateEvent(s *discordgo.Session, m *discordgo.MessageCreate)

Jump to

Keyboard shortcuts

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