Skip to content

Commit

Permalink
correct deprecation target of Guild::user_permissions_in
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbt365 committed Nov 25, 2024
1 parent c833f7c commit 4b9756c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/model/guild/member.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl Member {
/// And/or returns [`ModelError::ItemMissing`] if the "default channel" of the guild is not
/// found.
#[cfg(feature = "cache")]
#[deprecated = "Use Guild::member_permissions_in, as this doesn't consider permission overwrites"]
#[deprecated = "Use Guild::user_permissions_in, as this doesn't consider permission overwrites"]
pub fn permissions(&self, cache: impl AsRef<Cache>) -> Result<Permissions> {
let guild = cache.as_ref().guild(self.guild_id).ok_or(ModelError::GuildNotFound)?;

Expand Down
2 changes: 1 addition & 1 deletion src/model/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ impl Guild {
/// Calculate a [`Member`]'s permissions in the guild.
#[inline]
#[must_use]
#[deprecated = "Use Guild::member_permissions_in, as this doesn't consider permission overwrites"]
#[deprecated = "Use Guild::user_permissions_in, as this doesn't consider permission overwrites"]
pub fn member_permissions(&self, member: &Member) -> Permissions {
Self::user_permissions_in_(
None,
Expand Down
2 changes: 1 addition & 1 deletion src/model/guild/partial_guild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ impl PartialGuild {
/// Calculate a [`Member`]'s permissions in the guild.
#[inline]
#[must_use]
#[deprecated = "Use PartialGuild::member_permissions_in, as this doesn't consider permission overwrites"]
#[deprecated = "Use PartialGuild::user_permissions_in, as this doesn't consider permission overwrites"]
pub fn member_permissions(&self, member: &Member) -> Permissions {
Guild::user_permissions_in_(
None,
Expand Down

0 comments on commit 4b9756c

Please sign in to comment.