Skip to content

Ensure the required gateway intent is available when connecting to audio#3108

Merged
Misha-133 merged 1 commit into
discord-net:devfrom
Suiram1701:fix/throw-on-missing-audio-intent
May 9, 2025
Merged

Ensure the required gateway intent is available when connecting to audio#3108
Misha-133 merged 1 commit into
discord-net:devfrom
Suiram1701:fix/throw-on-missing-audio-intent

Conversation

@Suiram1701

Copy link
Copy Markdown
Contributor

Description

I've seen that DiscordSocketClient.DownloadUsersAsync ensures that the required intent is available so other methods that also require specific intent should do the same for more consistency.

Changes

  • Call EnsureGatewayIntent(GatewayIntents.GuildVoiceStates) before even trying to connect the audio client.

Related Issues

N/A

@Misha-133 Misha-133 merged commit f1ff191 into discord-net:dev May 9, 2025
@Suiram1701 Suiram1701 deleted the fix/throw-on-missing-audio-intent branch May 9, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants