feat(command): do not use new components

This commit is contained in:
Anhgelus Morhtuuzh 2025-08-21 13:33:17 +02:00
parent bbfaaaf04b
commit ebab5cd09f
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
2 changed files with 46 additions and 14 deletions

View file

@ -1,9 +1,9 @@
package config
import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/logger"
"strings"
"github.com/anhgelus/gokord"
)
type GuildConfig struct {
@ -18,8 +18,7 @@ type GuildConfig struct {
func GetGuildConfig(guildID string) *GuildConfig {
cfg := GuildConfig{GuildID: guildID}
if err := cfg.Load(); err != nil {
logger.Alert("config/guild.go - Loading guild config", err.Error(), "guild_id", guildID)
return nil
panic(err)
}
return &cfg
}