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] URL encode timestamps sent as query parameters #2770

Merged
merged 2 commits into from
Sep 2, 2023

Conversation

Sauceke
Copy link
Contributor

@Sauceke Sauceke commented Aug 28, 2023

Description

Methods calling to the threads/archived/* endpoints don't escape the '+' character in the before query parameter, resulting in a DATE_TIME_TYPE_PARSE error. URL escaping the timestamp solves this.

Changes

  • Update all three two of the archived thread enumeration methods

Related Issues

none

EDIT: Sorry, I just realized one of these endpoints expects a different date format. Should have RTFM.
The other 2 methods are still in scope, reverted changes for the third one.
(The third method still seems to be incorrect in one of the branches, but that isn't related to this PR.)

@Misha-133 Misha-133 merged commit 589c58a into discord-net:dev Sep 2, 2023
3 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