File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,11 @@ impl Member {
428428 /// member.permissions(&cache).expect("permissions").bits());
429429 /// ```
430430 ///
431+ /// # Note
432+ ///
433+ /// You likely want to use Guild::user_permissions_in instead as this function does not consider
434+ /// permission overwrites.
435+ ///
431436 /// # Errors
432437 ///
433438 /// Returns a [`ModelError::GuildNotFound`] if the guild the member's in could not be
Original file line number Diff line number Diff line change @@ -1912,9 +1912,11 @@ impl Guild {
19121912 }
19131913
19141914 /// Calculate a [`Member`]'s permissions in the guild.
1915+ ///
1916+ /// You likely want to use Guild::user_permissions_in instead as this function does not consider
1917+ /// permission overwrites.
19151918 #[ inline]
19161919 #[ must_use]
1917- #[ deprecated = "Use Guild::user_permissions_in, as this doesn't consider permission overwrites" ]
19181920 pub fn member_permissions ( & self , member : & Member ) -> Permissions {
19191921 Self :: user_permissions_in_ (
19201922 None ,
@@ -1928,12 +1930,14 @@ impl Guild {
19281930
19291931 /// Calculate a [`PartialMember`]'s permissions in the guild.
19301932 ///
1933+ /// You likely want to use Guild::partial_member_permissions_in instead as this function does
1934+ /// not consider permission overwrites.
1935+ ///
19311936 /// # Panics
19321937 ///
19331938 /// Panics if the passed [`UserId`] does not match the [`PartialMember`] id, if user is Some.
19341939 #[ inline]
19351940 #[ must_use]
1936- #[ deprecated = "Use Guild::partial_member_permissions_in, as this doesn't consider permission overwrites" ]
19371941 pub fn partial_member_permissions (
19381942 & self ,
19391943 member_id : UserId ,
Original file line number Diff line number Diff line change @@ -1032,9 +1032,11 @@ impl PartialGuild {
10321032 }
10331033
10341034 /// Calculate a [`Member`]'s permissions in the guild.
1035+ ///
1036+ /// You likely want to use PartialGuild::user_permissions_in instead as this function does not
1037+ /// consider permission overwrites.
10351038 #[ inline]
10361039 #[ must_use]
1037- #[ deprecated = "Use PartialGuild::user_permissions_in, as this doesn't consider permission overwrites" ]
10381040 pub fn member_permissions ( & self , member : & Member ) -> Permissions {
10391041 Guild :: user_permissions_in_ (
10401042 None ,
@@ -1048,12 +1050,14 @@ impl PartialGuild {
10481050
10491051 /// Calculate a [`PartialMember`]'s permissions in the guild.
10501052 ///
1053+ /// You likely want to use PartialGuild::partial_member_permissions_in instead as this function
1054+ /// does not consider permission overwrites.
1055+ ///
10511056 /// # Panics
10521057 ///
10531058 /// Panics if the passed [`UserId`] does not match the [`PartialMember`] id, if user is Some.
10541059 #[ inline]
10551060 #[ must_use]
1056- #[ deprecated = "Use PartialGuild::partial_member_permissions_in, as this doesn't consider permission overwrites" ]
10571061 pub fn partial_member_permissions (
10581062 & self ,
10591063 member_id : UserId ,
You can’t perform that action at this time.
0 commit comments