Skip to content

Commit

Permalink
Encode timestamps in RFC3339 (serenity-rs#2665)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops authored and mkrasnitski committed Jul 28, 2024
1 parent d1e1781 commit cd4f833
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 @@ -2972,7 +2972,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 @@ -3000,7 +3000,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 @@ -3028,7 +3028,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 @@ -1032,7 +1032,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 @@ -1046,7 +1046,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 @@ -1060,7 +1060,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 cd4f833

Please sign in to comment.