Skip to content

allow nullable DiscordChannel.applicationId - #1072

Merged
DRSchlaubi merged 2 commits into
kordlib:mainfrom
pranav-narayanan:hotfix/nullable_channel_applicationid
Aug 8, 2026
Merged

allow nullable DiscordChannel.applicationId#1072
DRSchlaubi merged 2 commits into
kordlib:mainfrom
pranav-narayanan:hotfix/nullable_channel_applicationid

Conversation

@pranav-narayanan

Copy link
Copy Markdown
Contributor

In response to this breaking change: https://docs.discord.com/developers/change-log#channel-application_id-is-now-nullable

Discord made the application_id field in a channel object nullable, so in two places the type needed to be updated from OptionalSnowflake to OptionalSnowflake?.

Have tested deserialization with missing, null, and present application_id locally, they all now work.

@NoComment1105

Copy link
Copy Markdown
Contributor

Please run ./gradlew dumpLegacyAbi

@DRSchlaubi
DRSchlaubi merged commit 9e7dd18 into kordlib:main Aug 8, 2026
2 of 3 checks passed
@pranav-narayanan
pranav-narayanan deleted the hotfix/nullable_channel_applicationid branch August 9, 2026 01:30
@pranav-narayanan
pranav-narayanan restored the hotfix/nullable_channel_applicationid branch August 9, 2026 01:30
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.

3 participants