Align Config struct fields using fieldalignment

This commit is contained in:
ayntgl 2022-02-09 20:15:37 +04:00
parent 13a07469f7
commit 2aed7c0209
2 changed files with 3 additions and 1 deletions

View file

@ -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{

View file

@ -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 {