From 2aed7c02098d76f710eea071f3c0727211d6207b Mon Sep 17 00:00:00 2001 From: ayntgl Date: Wed, 9 Feb 2022 20:15:37 +0400 Subject: [PATCH] Align Config struct fields using fieldalignment --- ui/app.go | 2 ++ util/config.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app.go b/ui/app.go index 39b3998..42d2176 100644 --- a/ui/app.go +++ b/ui/app.go @@ -39,6 +39,8 @@ func NewApp() *App { } func (app *App) Connect(token string) error { + // For user accounts, all of the guilds, the user is in, are dispatched in the READY gateway event. + // Whereas, for bot accounts, the guilds are dispatched discretely in the GUILD_CREATE gateway events. if !strings.HasPrefix(token, "Bot") { app.Session.UserAgent = app.Config.General.UserAgent app.Session.Identify = discordgo.Identify{ diff --git a/util/config.go b/util/config.go index b4a1141..88186bd 100644 --- a/util/config.go +++ b/util/config.go @@ -31,8 +31,8 @@ type KeybindingsConfig struct { } type Config struct { - General GeneralConfig `toml:"general"` Keybindings KeybindingsConfig `toml:"keybindings"` + General GeneralConfig `toml:"general"` } func LoadConfig() *Config {