-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathstructs.go
31 lines (26 loc) · 819 Bytes
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package main
import (
"time"
"github.com/bwmarrin/discordgo"
)
type Command struct {
Help string
Description string
Run func(session *discordgo.Session, msg *discordgo.MessageCreate, prefix string)
}
type CommandHandler struct {
Prefix string
Commands map[string]*Command
IgnoreBots bool
OnMessageHandler func(session *discordgo.Session, msg *discordgo.MessageCreate)
Middleware func(session *discordgo.Session, msg *discordgo.MessageCreate) bool
HelpCommand *discordgo.MessageEmbed
TimeStarted time.Time
}
type Config struct {
Prefix string `json:"prefix"`
Token string `json:"token"`
MainGuild string `json:"mainGuild"`
LockedChannels []string `json:"lockedChannels"`
SafeMode bool `json:"safeMode"`
}