Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func GetNewRoles ¶
func LoadConfig ¶
func LoadConfig(cfg *Config)
Types ¶
type Config ¶
type Config struct { gorm.Model GuildID string `gorm:"not null"` XpRoles []XpRole BroadcastChannel string DisabledXpChannel string }
func (*Config) DisabledXpChannelsSlice ¶
func (*Config) DisabledXpChannelsString ¶
type Copaing ¶
type Copaing struct { gorm.Model UserID string `gorm:"not null"` GuildID string `gorm:"not null"` XP uint `gorm:"default:0"` OldXP uint `gorm:"default:0"` }
func GetCopaing ¶
type DBCredentials ¶
func (*DBCredentials) Connect ¶
func (dbCredentials *DBCredentials) Connect() *gorm.DB
Click to show internal directories.
Click to hide internal directories.