starting research for vc support
This commit is contained in:
24
message.go
24
message.go
@@ -1,11 +1,15 @@
|
||||
package bolt
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
//built-in Discord reactions
|
||||
dg "github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
// built-in Discord reactions
|
||||
type Reaction string
|
||||
|
||||
//a few easy-to-use emojis, Discordgo/Discord API requires them to be saved like this.
|
||||
// a few easy-to-use emojis, Discordgo/Discord API requires them to be saved like this.
|
||||
const (
|
||||
ReactionThumbsUp Reaction = "👍"
|
||||
ReactionThumbsDown Reaction = "👎"
|
||||
@@ -39,6 +43,20 @@ const (
|
||||
ReactionDragon Reaction = "🐉"
|
||||
)
|
||||
|
||||
// struct containing message event fields to prevent passing MessageCreate events and holding up routines
|
||||
type MessageCreateEvent struct {
|
||||
AuthorUsername string
|
||||
AuthorID string
|
||||
AuthorRoles []string
|
||||
MsgID string
|
||||
Msg string
|
||||
MsgChanID string
|
||||
MsgChanName string
|
||||
MsgGuildID string
|
||||
MsgGuildName string
|
||||
MsgAttachments []*dg.MessageAttachment
|
||||
}
|
||||
|
||||
// information about attachments to messages
|
||||
type MessageAttachment struct {
|
||||
ID string
|
||||
|
Reference in New Issue
Block a user