Skip to content

Commit e5c9149

Browse files
committed
Attempt to fix 'cannot verify guild_age' warning on large server
1 parent 6f52d8e commit e5c9149

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from aiohttp import ClientSession, ClientResponseError
2222
from discord.ext import commands, tasks
2323
from discord.ext.commands.view import StringView
24+
from discord.ext.commands import MemberConverter
2425
from emoji import UNICODE_EMOJI
2526
from pkg_resources import parse_version
2627

@@ -791,7 +792,7 @@ async def is_blocked(
791792
send_message: bool = False,
792793
) -> bool:
793794

794-
member = self.guild.get_member(author.id)
795+
member = self.guild.get_member(author.id) or await MemberConverter.convert(author)
795796
if member is None:
796797
# try to find in other guilds
797798
for g in self.guilds:

0 commit comments

Comments
 (0)