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

fix(Thread): make archive_timestamp not nullable #5965

Merged
merged 3 commits into from
Jun 29, 2021
Merged

fix(Thread): make archive_timestamp not nullable #5965

merged 3 commits into from
Jun 29, 2021

Conversation

DTrombett
Copy link
Contributor

@DTrombett DTrombett commented Jun 29, 2021

fix #5964

Please describe the changes this PR makes and why it should be merged:
This PR makes archivedTimestamp and archivedAt not nullable as shown in Discord API docs.

Since these properties indicate the date of the last archive status change and not only the last archived/unarchive date maybe we can change their actual names, but for now, I'll keep them.

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

@DTrombett
Copy link
Contributor Author

I see that archiveTimestamp is not the same as createdTimestamp when the Thread is not archived so I'll change the info block.

@iCrawl iCrawl added this to the Version 13 milestone Jun 29, 2021
@iCrawl iCrawl merged commit edab5af into discordjs:master Jun 29, 2021
@DTrombett DTrombett deleted the thread-archive-patch branch June 30, 2021 15:40
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.

Thread channels have archivedAt and archivedTimestamp if they're not archived
5 participants