aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-18 12:55:08 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-18 12:55:43 +0200
commit460e2ee8815be4f809b1df9fd7894f9804ad9c81 (patch)
tree7e6871f5411dbf0a82a6e330c1ffdbd2e2a4d5a1
parentb9888e50acdcfa2af6e9cc75f7c2ca4b5a5a41c9 (diff)
fix(gorm): not handling interface in type
-rw-r--r--config/guild.go1
-rw-r--r--main.go2
-rw-r--r--xp/member.go2
3 files changed, 1 insertions, 4 deletions
diff --git a/config/guild.go b/config/guild.go
index 48ebc96..242cc89 100644
--- a/config/guild.go
+++ b/config/guild.go
@@ -9,7 +9,6 @@ import (
type GuildConfig struct {
gorm.Model
- gokord.DataBase
GuildID string `gorm:"not null"`
XpRoles []XpRole
DisabledChannels string
diff --git a/main.go b/main.go
index 64e9147..5baeab7 100644
--- a/main.go
+++ b/main.go
@@ -14,7 +14,7 @@ import (
var token string
const (
- Version = "2.2.1" // git version: 0.2.1 (it's the v2 of the bot)
+ Version = "2.2.2" // git version: 0.2.2 (it's the v2 of the bot)
)
func init() {
diff --git a/xp/member.go b/xp/member.go
index 9352a30..639e0d6 100644
--- a/xp/member.go
+++ b/xp/member.go
@@ -16,8 +16,6 @@ import (
type Copaing struct {
gorm.Model
- gokord.RedisBase
- gokord.DataBase
DiscordID string `gorm:"not null"`
XP uint `gorm:"default:0"`
GuildID string `gorm:"not null"`