From ec346762ad3ccbeb02252f7dfcbdd5f552f3ee45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 22 Dec 2023 18:17:13 +0100 Subject: [PATCH] Encode timestamps in RFC3339 (#2665) Fixes #2664 --- src/http/client.rs | 6 +++--- src/model/channel/channel_id.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/http/client.rs b/src/http/client.rs index 2ab32fc43c5..4c1b5367d67 100644 --- a/src/http/client.rs +++ b/src/http/client.rs @@ -3005,7 +3005,7 @@ impl Http { pub async fn get_channel_archived_public_threads( &self, channel_id: ChannelId, - before: Option, + before: Option, limit: Option, ) -> Result { let mut params = ArrayVec::<_, 2>::new(); @@ -3033,7 +3033,7 @@ impl Http { pub async fn get_channel_archived_private_threads( &self, channel_id: ChannelId, - before: Option, + before: Option, limit: Option, ) -> Result { let mut params = ArrayVec::<_, 2>::new(); @@ -3061,7 +3061,7 @@ impl Http { pub async fn get_channel_joined_archived_private_threads( &self, channel_id: ChannelId, - before: Option, + before: Option, limit: Option, ) -> Result { let mut params = ArrayVec::<_, 2>::new(); diff --git a/src/model/channel/channel_id.rs b/src/model/channel/channel_id.rs index 851945ab631..be6e776c20b 100644 --- a/src/model/channel/channel_id.rs +++ b/src/model/channel/channel_id.rs @@ -1033,7 +1033,7 @@ impl ChannelId { pub async fn get_archived_private_threads( self, http: impl AsRef, - before: Option, + before: Option, limit: Option, ) -> Result { http.as_ref().get_channel_archived_private_threads(self, before, limit).await @@ -1047,7 +1047,7 @@ impl ChannelId { pub async fn get_archived_public_threads( self, http: impl AsRef, - before: Option, + before: Option, limit: Option, ) -> Result { http.as_ref().get_channel_archived_public_threads(self, before, limit).await @@ -1061,7 +1061,7 @@ impl ChannelId { pub async fn get_joined_archived_private_threads( self, http: impl AsRef, - before: Option, + before: Option, limit: Option, ) -> Result { http.as_ref().get_channel_joined_archived_private_threads(self, before, limit).await