Keep track of guild states.
We don't currently bridge anything, but this just keeps everything in sync with the discord server.
This commit is contained in:
@@ -23,6 +23,7 @@ type Database struct {
|
||||
Reaction *ReactionQuery
|
||||
Attachment *AttachmentQuery
|
||||
Emoji *EmojiQuery
|
||||
Guild *GuildQuery
|
||||
}
|
||||
|
||||
func New(dbType, uri string, maxOpenConns, maxIdleConns int, baseLog log.Logger) (*Database, error) {
|
||||
@@ -85,5 +86,10 @@ func New(dbType, uri string, maxOpenConns, maxIdleConns int, baseLog log.Logger)
|
||||
log: db.log.Sub("Emoji"),
|
||||
}
|
||||
|
||||
db.Guild = &GuildQuery{
|
||||
db: db,
|
||||
log: db.log.Sub("Guild"),
|
||||
}
|
||||
|
||||
return db, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user