Bläddra i källkod

Align Config struct fields using fieldalignment

ayntgl 4 år sedan
förälder
incheckning
2aed7c0209
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 2 0
      ui/app.go
  2. 1 1
      util/config.go

+ 2 - 0
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{

+ 1 - 1
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 {