Align Config struct fields using fieldalignment
This commit is contained in:
parent
13a07469f7
commit
2aed7c0209
2 changed files with 3 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue