Repository: serenity-rs/serenity (language: rust)

Issue:
(`Partial`)`Guild::member_permissions` should not be locked behind cache feature
They don't need cache, so shouldn't require the feature.


Discussion / hints:

Fix patch:
diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs
index 1d00445a65f..55ac2633ea7 100644
--- a/src/model/guild/mod.rs
+++ b/src/model/guild/mod.rs
@@ -1906,7 +1906,6 @@ impl Guild {
 
     /// Calculate a [`Member`]'s permissions in the guild.
     #[inline]
-    #[cfg(feature = "cache")]
     #[must_use]
     pub fn member_permissions(&self, member: &Member) -> Permissions {
         Self::_user_permissions_in(
diff --git a/src/model/guild/partial_guild.rs b/src/model/guild/partial_guild.rs
index fcb440f50ac..f3c5618814c 100644
--- a/src/model/guild/partial_guild.rs
+++ b/src/model/guild/partial_guild.rs
@@ -1034,7 +1034,6 @@ impl PartialGuild {
 
     /// Calculate a [`Member`]'s permissions in the guild.
     #[inline]
-    #[cfg(feature = "cache")]
     #[must_use]
     pub fn member_permissions(&self, member: &Member) -> Permissions {
         Guild::_user_permissions_in(


Test patch: