Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(v interface{}) error
Types ¶
type Config ¶
type Config struct {
DevMode bool `json:"dev_mode"`
DevGuildIDs []snowflake.ID `json:"dev_guild_ids"`
SupportGuildID snowflake.ID `json:"support_guild_id"`
DevUserIDs []snowflake.ID `json:"dev_user_ids"`
LogLevel log.Level `json:"log_level"`
ErrorLogWebhook LogWebhookConfig `json:"error_log_webhook"`
InfoLogWebhook LogWebhookConfig `json:"info_log_webhook"`
Token string `json:"token"`
Database db.DatabaseConfig `json:"database"`
}
type LogWebhookConfig ¶
type LogWebhookConfig struct {
ID snowflake.ID `json:"id"`
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.