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 GnomedDev committed Jun 22, 2024
1 parent 2e3886c commit 78968aa
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 @@ -2913,7 +2913,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 @@ -2941,7 +2941,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 @@ -2969,7 +2969,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 78968aa

Please sign in to comment.