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

get_channel_archived_public_threads() seems to not be using ISO8601 for the before parameter #2699

Closed
Sirraide opened this issue Jan 9, 2024 · 1 comment

Comments

@Sirraide
Copy link

Sirraide commented Jan 9, 2024

get_channel_archived_public_threads() (and possibly get_channel_archived_private_threads(); I’m not sure if that one is also affected) optionally takes a before parameter that is currently just an Option<u64> that gets converted to a string and then sent to the route, from what I can tell. However, the Discord API docs specify that this parameter should be in the ISO8601 format.

As a result, when trying to pass e.g. a unix timestamp as a u64 to get_channel_archived_public_threads(), I get the following error message after trying to execute this against a forum channel:

Invalid Form Body (before: Could not parse 1664162557. Should be ISO8601.)
@Sirraide Sirraide changed the title get_channel_archived_publicj_threads seems to not be using ISO8601 for the before parameter get_channel_archived_public_threads() seems to not be using ISO8601 for the before parameter Jan 9, 2024
@jamesbt365
Copy link
Member

This is a duplicate of #2664 and is fixed in #2665.

@Sirraide Sirraide closed this as completed Jan 9, 2024
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

No branches or pull requests

2 participants