birdbot/persistence/database.go

16 lines
386 B
Go
Raw Normal View History

package persistence
2023-04-02 00:25:54 +02:00
// Database is an interface used to wrap persistant data
type Database interface {
GetDiscordMessage(id string) (string, error)
SetDiscordMessage(id string, messageID string) error
GetDiscordWebhook(id string) (*DBDiscordWebhook, error)
SetDiscordWebhook(id string, data *DBDiscordWebhook) error
}
type DBDiscordWebhook struct {
ID string
Token string
}