From 4b9756c08367fed474d99854497d3c15ecfc66f8 Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Mon, 25 Nov 2024 00:09:57 +0000 Subject: [PATCH] correct deprecation target of Guild::user_permissions_in --- src/model/guild/member.rs | 2 +- src/model/guild/mod.rs | 2 +- src/model/guild/partial_guild.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model/guild/member.rs b/src/model/guild/member.rs index d9726496eca..76fbc69fe10 100644 --- a/src/model/guild/member.rs +++ b/src/model/guild/member.rs @@ -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) -> Result { let guild = cache.as_ref().guild(self.guild_id).ok_or(ModelError::GuildNotFound)?; diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index 5100a429963..67f1a4053cd 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -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, diff --git a/src/model/guild/partial_guild.rs b/src/model/guild/partial_guild.rs index e0cf38a5bd8..93f172a1dad 100644 --- a/src/model/guild/partial_guild.rs +++ b/src/model/guild/partial_guild.rs @@ -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,