Skip to content

Fix Discord DMs by enabling channel partials#7

Closed
dbachelder wants to merge 1 commit intotintinweb:masterfrom
dbachelder:fix/discord-dm-partials
Closed

Fix Discord DMs by enabling channel partials#7
dbachelder wants to merge 1 commit intotintinweb:masterfrom
dbachelder:fix/discord-dm-partials

Conversation

@dbachelder
Copy link

Summary

  • add discord.Partials.Channel to the Discord client config
  • allow uncached DM channels to emit message events reliably

Why

The bridge expects first-contact/authentication to happen over Discord DM, but the Discord client was only configured with intents. Without Partials.Channel, DM channels that are not already cached may not deliver MessageCreate events, so incoming DMs never reach the auth flow or pi.

Testing

  • patched the installed extension locally
  • reloaded pi
  • confirmed a Discord DM reached pi as [📱 @sfdanb via discord]: Hi

@dbachelder
Copy link
Author

this was already fixed by this PR: #6

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.

1 participant