Skip to content

Commit ae9b78a

Browse files
committed
Fix fetch_member_profile() for bots
1 parent 97e06c3 commit ae9b78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2748,7 +2748,7 @@ async def fetch_member_profile(
27482748
with_mutual_friends_count=with_mutual_friends_count,
27492749
with_mutual_friends=with_mutual_friends,
27502750
)
2751-
if 'guild_member_profile' not in data:
2751+
if 'guild_member_profile' not in data and 'guild_member' not in data:
27522752
raise InvalidData('Member is not in this guild')
27532753
if 'guild_member' not in data:
27542754
raise InvalidData('Member has blocked you')

0 commit comments

Comments
 (0)