Skip to content

Commit 8a7a817

Browse files
committed
Fix CI
1 parent 580c6b9 commit 8a7a817

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/builder/create_soundboard.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ impl<'a> CreateSoundboard<'a> {
8585
///
8686
/// # Errors
8787
///
88-
/// If the `cache` is enabled, returns a [`ModelError::InvalidPermissions`] if the current user
89-
/// lacks permission. Otherwise returns [`Error::Http`], as well as if invalid data is given.
88+
/// Returns [`Error::Http`] if the current user lacks permission or if invalid data is given.
9089
///
9190
/// [Create Guild Expressions]: Permissions::CREATE_GUILD_EXPRESSIONS
91+
#[cfg(feature = "http")]
9292
pub async fn execute(
9393
self,
9494
cache_http: impl CacheHttp,

src/builder/edit_soundboard.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ use crate::http::CacheHttp;
44
use crate::internal::prelude::*;
55
use crate::model::prelude::*;
66

7-
/// A builder to create or edit a [`Soundboard`] for use via a number of model methods.
8-
///
9-
/// These are:
10-
///
11-
/// - [`Guild::edit_soundboard`]
12-
/// - [`PartialGuild::edit_soundboard`]
13-
/// - [`GuildId::edit_soundboard`]
7+
/// A builder to create or edit a [`Soundboard`] for use with [`GuildId::edit_soundboard`].
148
///
159
/// [Discord docs](https://discord.com/developers/docs/resources/soundboard#soundboard-resource)
1610
#[derive(Clone, Debug, Default, Serialize)]
@@ -81,6 +75,7 @@ impl<'a> EditSoundboard<'a> {
8175
///
8276
/// [Create Guild Expressions]: Permissions::CREATE_GUILD_EXPRESSIONS
8377
/// [Manage Guild Expressions]: Permissions::MANAGE_GUILD_EXPRESSIONS
78+
#[cfg(feature = "http")]
8479
pub async fn execute(
8580
self,
8681
cache_http: impl CacheHttp,

0 commit comments

Comments
 (0)