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

feat(PartialGroupDMChannel): add missing ownerId property #10502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

imnaiyar
Copy link
Contributor

@imnaiyar imnaiyar commented Sep 13, 2024

Please describe the changes this PR makes and why it should be merged:
I noticed ownerId was missing from PartialGroupDMChannel. This PR fixes that.

While looking at the api documentation alone, it is hard to determine for me if the owner_id can be missing for Group DM Channel's, but from my testing so far, I found it to be always present. So taking that at face value

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 4:35pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 4:35pm

@vladfrangu vladfrangu changed the title fix(PartialGroupDMChannel): add missing ownerId property feat(PartialGroupDMChannel): add missing ownerId property Sep 13, 2024
@vladfrangu vladfrangu added this to the discord.js 14.17 milestone Sep 13, 2024
@nyapat
Copy link
Contributor

nyapat commented Sep 15, 2024

While looking at the api documentation alone, it is hard to determine for me if the owner_id can be missing for Group DM Channel's, but from my testing so far, I found it to be always present. So taking that at face value

owner_id? has been optional since before threads were added, I think you should leave it as such

@imnaiyar
Copy link
Contributor Author

imnaiyar commented Sep 15, 2024

Yeah it's optional because it can be missing for other channel types, my thinking was it would always be present for GroupDMs, but now that you mention it, looking at other djs structures (ThreadChannel) it accounts for that. So I think I should stick to the library behavior

@imnaiyar
Copy link
Contributor Author

imnaiyar commented Sep 19, 2024

I noticed last_message_id and last_pin_timestamp is also missing, I am wondering if it was left out for a reason or I should add those too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

4 participants