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 {