discord-net / Discord.Net

An unofficial .Net wrapper for the Discord API (https://discord.com/)
https://discordnet.dev
MIT License
3.33k stars 736 forks source link

[BUG] Intents won't identify? #2068

Closed panthernet closed 2 years ago

panthernet commented 2 years ago

After updating to the latest commit from 2.4.0 I see that bot intents inside the lib during presence checks are: AllUnprivileged Meanwhile all intents on the dev site has been enabled long ago and been working with 2.4.0.

Now the lib just fails to get or download users. Need an advice on how to fix it.

image

Exact error message: Missing required gateway intent GuildMembers in order to execute this operation. DiscordSocketClient.cs line 2912 in EnsureGatewayIntent() method

UPD: checked bot ID on site and in Discord - identical. UPD2: I can't find where _gatewayIntents var is updated, only in class constructor which seems to use default value of AllUnprivileged

Hawxy commented 2 years ago

See the relevant upgrade guide for gateway intents: https://discordnet.dev/guides/v2_v3_guide/v2_to_v3_guide.html#gatewayintents

panthernet commented 2 years ago

Thanks, haven't seen that. So I must specify intents myself?