Files
HomesteadToGo/relay/structs.go
2025-11-30 10:58:16 +01:00

33 lines
610 B
Go

package relay
import (
"log/slog"
"github.com/disgoorg/disgo/bot"
"github.com/disgoorg/paginator"
"github.com/disgoorg/snowflake/v2"
)
type Bot struct {
Cfg Config
Client bot.Client
Paginator *paginator.Manager
}
type Config struct {
Log LogConfig `toml:"log"`
Bot BotConfig `toml:"bot"`
}
type BotConfig struct {
DevGuilds []snowflake.ID `toml:"dev_guilds"`
Token string `toml:"token"`
Name string `toml:"name"`
}
type LogConfig struct {
Level slog.Level `toml:"level"`
Format string `toml:"format"`
AddSource bool `toml:"add_source"`
}