initial pass at wiring up login to discordgo
This commit is contained in:
@@ -17,10 +17,19 @@
|
||||
package connector
|
||||
|
||||
import (
|
||||
"github.com/bwmarrin/discordgo"
|
||||
"maunium.net/go/mautrix/bridgev2/database"
|
||||
)
|
||||
|
||||
func (d *DiscordConnector) GetDBMetaTypes() database.MetaTypes {
|
||||
//TODO implement me
|
||||
panic("implement me")
|
||||
type UserLoginMetadata struct {
|
||||
Token string `json:"token"`
|
||||
HeartbeatSession discordgo.HeartbeatSession `json:"heartbeat_session"`
|
||||
}
|
||||
|
||||
func (d *DiscordConnector) GetDBMetaTypes() database.MetaTypes {
|
||||
return database.MetaTypes{
|
||||
UserLogin: func() any {
|
||||
return &UserLoginMetadata{}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user