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

Add note about archiver_id #9852

Merged
merged 3 commits into from
May 30, 2024
Merged

Conversation

tailoric
Copy link
Contributor

Summary

Discord removed the archiver_id field from their thread metadata.
See following discussion thread and api docs commit:
#9850
discord/discord-api-docs@82c98ba

This pull request adds a note explaining that the value will always be None and that the id can only be acquired via the audit log now

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

Comment on lines 125 to 127
.. note::
This field has been removed from the :ddocs:`Thread Metadata Object <resources/channel#thread-metadata-object>`.
The ``archiver_id``, therefore, will always be ``None`` and can only be obtained via the audit log now.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. note::
This field has been removed from the :ddocs:`Thread Metadata Object <resources/channel#thread-metadata-object>`.
The ``archiver_id``, therefore, will always be ``None`` and can only be obtained via the audit log now.
.. note::
Due to an API change, the ``archiver_id``, therefore, will always be ``None`` and can only be obtained via the audit log now.

Simplify the wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplified it. But also removed the "therefore" because it at least to me didn't make sense in the new sentence structure

discord/threads.py Outdated Show resolved Hide resolved
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
Copy link
Owner

@Rapptz Rapptz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Rapptz Rapptz merged commit 2c19764 into Rapptz:master May 30, 2024
8 checks passed
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.

2 participants