Skip to content

Invalid field role_id type in INTEGRATION_UPDATE #7524

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
Azn9 opened this issue Apr 26, 2025 · 0 comments
Open

Invalid field role_id type in INTEGRATION_UPDATE #7524

Azn9 opened this issue Apr 26, 2025 · 0 comments
Labels

Comments

@Azn9
Copy link

Azn9 commented Apr 26, 2025

Description

I recently started seeing errors in my bot, related to Guild Integrations.
The field role_id is marked as possible and not nullable, but I receive events with it present and null, breaking the deserialization of the payload.

Steps to Reproduce

Just start a bot and wait for an integration update.

Expected Behavior

Either the doc should specify that the field may be null, or the api should not include it when it is.

Current Behavior

I receive payloads with the role_id field being null:

{"t":"INTEGRATION_UPDATE","s":592,"op":0,"d":{"type":"twitch","syncing":false,"synced_at":"2020-06-03T22:14:35.881000+00:00","subscriber_count":0,"role_id":null,"revoked":true,"name":"<redacted>","id":"<redacted>","expire_grace_period":7,"expire_behavior":0,"enabled":true,"enable_emoticons":true,"account":{"name":"<redacted>","id":"<redacted>"},"guild_id":"<redacted>"}}

Screenshots/Videos

No response

Client and System Information

Discord4J 3.3.0-SNAPSHOT

@Azn9 Azn9 added the bug label Apr 26, 2025
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant