From e253d2882eca5231346329e1c9cc85a50b049f59 Mon Sep 17 00:00:00 2001 From: nitroflap Date: Tue, 8 Feb 2022 17:10:52 +0300 Subject: [PATCH] fix(discord#New): fixed imports and removed MakeIntent --- discord.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/discord.go b/discord.go index b05fc02..5e7aab2 100644 --- a/discord.go +++ b/discord.go @@ -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