fix(discord#New): fixed imports and removed MakeIntent
This commit is contained in:
parent
6ff665e56e
commit
e253d2882e
1 changed files with 1 additions and 3 deletions
|
@ -14,8 +14,6 @@
|
||||||
package discordgo
|
package discordgo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
|
@ -54,7 +52,7 @@ func New(token string) (s *Session, err error) {
|
||||||
s.Identify.GuildSubscriptions = true
|
s.Identify.GuildSubscriptions = true
|
||||||
s.Identify.Properties.OS = runtime.GOOS
|
s.Identify.Properties.OS = runtime.GOOS
|
||||||
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
|
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
|
||||||
s.Identify.Intents = MakeIntent(IntentsAllWithoutPrivileged)
|
s.Identify.Intents = IntentsAllWithoutPrivileged
|
||||||
s.Identify.Token = token
|
s.Identify.Token = token
|
||||||
s.Token = token
|
s.Token = token
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue