Skip to content

Commit

Permalink
Encode timestamps in RFC3339 (#2665)
Browse files Browse the repository at this point in the history
Fixes #2664
  • Loading branch information
Kerollmops authored and GnomedDev committed Nov 13, 2024
1 parent 543c6cf commit ec34676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,7 @@ impl Http {
pub async fn get_channel_archived_public_threads(
&self,
channel_id: ChannelId,
before: Option<u64>,
before: Option<Timestamp>,
limit: Option<u64>,
) -> Result<ThreadsData> {
let mut params = ArrayVec::<_, 2>::new();
Expand Down Expand Up @@ -3033,7 +3033,7 @@ impl Http {
pub async fn get_channel_archived_private_threads(
&self,
channel_id: ChannelId,
before: Option<u64>,
before: Option<Timestamp>,
limit: Option<u64>,
) -> Result<ThreadsData> {
let mut params = ArrayVec::<_, 2>::new();
Expand Down Expand Up @@ -3061,7 +3061,7 @@ impl Http {
pub async fn get_channel_joined_archived_private_threads(
&self,
channel_id: ChannelId,
before: Option<u64>,
before: Option<ChannelId>,
limit: Option<u64>,
) -> Result<ThreadsData> {
let mut params = ArrayVec::<_, 2>::new();
Expand Down
6 changes: 3 additions & 3 deletions src/model/channel/channel_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ impl ChannelId {
pub async fn get_archived_private_threads(
self,
http: impl AsRef<Http>,
before: Option<u64>,
before: Option<Timestamp>,
limit: Option<u64>,
) -> Result<ThreadsData> {
http.as_ref().get_channel_archived_private_threads(self, before, limit).await
Expand All @@ -1047,7 +1047,7 @@ impl ChannelId {
pub async fn get_archived_public_threads(
self,
http: impl AsRef<Http>,
before: Option<u64>,
before: Option<Timestamp>,
limit: Option<u64>,
) -> Result<ThreadsData> {
http.as_ref().get_channel_archived_public_threads(self, before, limit).await
Expand All @@ -1061,7 +1061,7 @@ impl ChannelId {
pub async fn get_joined_archived_private_threads(
self,
http: impl AsRef<Http>,
before: Option<u64>,
before: Option<ChannelId>,
limit: Option<u64>,
) -> Result<ThreadsData> {
http.as_ref().get_channel_joined_archived_private_threads(self, before, limit).await
Expand Down

0 comments on commit ec34676

Please sign in to comment.