Skip to content
New issue

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

By clicking “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? Sign in to your account

Update resolved data structure in application command interactions #161

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

Gregory-Widmer
Copy link
Contributor

Justification: I think there was a misunderstanding in https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure.

Partial Channel objects only have id, name, type and permissions fields. Threads will also have thread_metadata and parent_id fields.

Those fields in partial channel objects may be included, but they are not mandatory. They do have the same properties as in the channel object description.

This PR also includes the thread related fields, as they are missing.

This PR is required to fix issue #1171 in D4J.

@Azn9 Azn9 added field/addition A field is being added field/type-change A field is having a type change (version x.y.z+1) labels Mar 23, 2024
@Azn9 Azn9 added this to the 1.6.19 milestone Mar 26, 2024
@Azn9 Azn9 changed the base branch from master to 1.6.x March 27, 2024 02:33
@Azn9
Copy link
Member

Azn9 commented Mar 27, 2024

I cannot push to your repo to rebase the branch so I'll close this PR and merge it via #165

@Azn9 Azn9 closed this Mar 27, 2024
@Azn9
Copy link
Member

Azn9 commented Mar 27, 2024

I'm stupid, threads don't exist on 1.6.X so it cannot be merged there... 😢

@Azn9 Azn9 reopened this Mar 27, 2024
@Azn9 Azn9 changed the base branch from 1.6.x to master March 27, 2024 02:52
@Azn9 Azn9 merged commit 99da079 into Discord4J:master Mar 27, 2024
3 checks passed
Azn9 added a commit that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
field/addition A field is being added field/type-change A field is having a type change (version x.y.z+1)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants