fix(discord#New): fixed imports and removed MakeIntent

This commit is contained in:
nitroflap 2022-02-08 17:10:52 +03:00
parent 6ff665e56e
commit e253d2882e
No known key found for this signature in database
GPG key ID: 810F53DB0E0F81A8

View file

@ -14,8 +14,6 @@
package discordgo
import (
"errors"
"fmt"
"net/http"
"runtime"
"time"
@ -54,7 +52,7 @@ func New(token string) (s *Session, err error) {
s.Identify.GuildSubscriptions = true
s.Identify.Properties.OS = runtime.GOOS
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
s.Identify.Intents = MakeIntent(IntentsAllWithoutPrivileged)
s.Identify.Intents = IntentsAllWithoutPrivileged
s.Identify.Token = token
s.Token = token