Skip to content

Commit

Permalink
Remove outdated user_permissions_in docs (#2811)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Mar 20, 2024
1 parent 5f2037d commit ddff174
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
13 changes: 0 additions & 13 deletions src/model/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1861,15 +1861,6 @@ impl Guild {
}

/// Calculate a [`Member`]'s permissions in the guild.
///
/// If member caching is enabled the cache will be checked first. If not found it will resort
/// to an http request.
///
/// Cache is still required to look up roles.
///
/// # Errors
///
/// See [`Guild::member`].
#[inline]
#[cfg(feature = "cache")]
#[must_use]
Expand Down Expand Up @@ -1898,10 +1889,6 @@ impl Guild {
}

/// Calculate a [`Member`]'s permissions in a given channel in the guild.
///
/// # Errors
///
/// Returns [`Error::Model`] if the [`Member`] has a non-existent role for some reason.
#[inline]
#[must_use]
pub fn user_permissions_in(&self, channel: &GuildChannel, member: &Member) -> Permissions {
Expand Down
13 changes: 0 additions & 13 deletions src/model/guild/partial_guild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1091,15 +1091,6 @@ impl PartialGuild {
}

/// Calculate a [`Member`]'s permissions in the guild.
///
/// If member caching is enabled the cache will be checked first. If not found it will resort
/// to an http request.
///
/// Cache is still required to look up roles.
///
/// # Errors
///
/// See [`Guild::member`].
#[inline]
#[cfg(feature = "cache")]
#[must_use]
Expand Down Expand Up @@ -1342,10 +1333,6 @@ impl PartialGuild {
}

/// Calculate a [`Member`]'s permissions in a given channel in the guild.
///
/// # Errors
///
/// Returns [`Error::Model`] if the Member has a non-existent [`Role`] for some reason.
#[inline]
#[must_use]
pub fn user_permissions_in(&self, channel: &GuildChannel, member: &Member) -> Permissions {
Expand Down

0 comments on commit ddff174

Please sign in to comment.