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

Encode timestamps in RFC3339 #2665

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,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 @@ -2827,7 +2827,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 @@ -2855,7 +2855,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 @@ -1022,7 +1022,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 @@ -1036,7 +1036,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 @@ -1050,7 +1050,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