Skip to content

Commit

Permalink
Fix typo and lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rhgndf committed Oct 16, 2024
1 parent ffb865c commit 825af1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/builder/edit_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ impl<'a> EditChannel<'a> {
self
}


/// The status of the voice channel. Can be empty.
///
/// Must be between 0 and 1024 characters long.
Expand Down Expand Up @@ -339,7 +338,10 @@ impl<'a> Builder for EditChannel<'a> {
}

if let Some(ref status) = self.status {
cache_http.http().edit_voice_status(ctx, &json!({ "status": status }), self.audit_log_reason.clone()).await?;
cache_http
.http()
.edit_voice_status(ctx, &json!({ "status": status }), self.audit_log_reason)
.await?;
}

cache_http.http().edit_channel(ctx, &self, self.audit_log_reason).await
Expand Down
2 changes: 1 addition & 1 deletion src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ impl Http {
.await
}

/// Changes a voice channel's state.
/// Changes a voice channel's status.
pub async fn edit_voice_status(
&self,
channel_id: ChannelId,
Expand Down

0 comments on commit 825af1e

Please sign in to comment.