From 0b91c89b79efa7f4c13182122b3cd76b79c90a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 17 Dec 2023 16:04:12 +0100 Subject: [PATCH] Modify the get threads methods to accept a Timestamp or a ChannelId --- 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 6e97b68b7bb..51c667d695b 100644 --- a/src/http/client.rs +++ b/src/http/client.rs @@ -2799,7 +2799,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(); @@ -2827,7 +2827,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(); @@ -2855,7 +2855,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 20cd8930f23..8530214dd31 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