From d6dc322edf3bd1518d098730a709ceb978e07f7e 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 c9fe7fb93fa..6d25b4b8ced 100644 --- a/src/http/client.rs +++ b/src/http/client.rs @@ -2856,7 +2856,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(); @@ -2884,7 +2884,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(); @@ -2912,7 +2912,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 6d3e70ae98b..c6f119050e7 100644 --- a/src/model/channel/channel_id.rs +++ b/src/model/channel/channel_id.rs @@ -1022,7 +1022,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 @@ -1036,7 +1036,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 @@ -1050,7 +1050,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