Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Partially improve #2, but only for bots
Browse files Browse the repository at this point in the history
  • Loading branch information
cainy-a committed Apr 7, 2021
1 parent 0ca74d6 commit 3c79907
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"strings"

"github.com/cainy-a/gord/tview"
"github.com/cainy-a/discordgo"
"github.com/cainy-a/gord/tview"

"github.com/cainy-a/gord/commands/commandimpls"
"github.com/cainy-a/gord/config"
Expand Down Expand Up @@ -176,6 +176,8 @@ func attemptLogin(loginScreen *ui.Login, loginMessage string, configuration *con
readyChan <- event
})

// if Bot user with intent enabled, get all users
session.Identify.Intents = discordgo.IntentsAllWithoutPrivileged | discordgo.IntentsGuildMembers
discordError = session.Open()

if discordError != nil {
Expand Down

0 comments on commit 3c79907

Please sign in to comment.