Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit 78aed14

Browse files
committed
use query_members if not chunked
1 parent 0ca5d95 commit 78aed14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

converters.py

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ async def convert(self, ctx, arg):
5151
ctx.bot.logger.info(f'$YELLOWFinding alias for $BLUE{arg}')
5252
arg = str(aliases[arg.lower()])
5353
ctx.bot.logger.info(f'$YELLOWAlias found, $BLUE{arg}')
54+
if not ctx.guild.chunked:
55+
try:
56+
return (await ctx.guild.query_members(arg, limit=1))[0]
57+
except Exception:
58+
pass
5459
try:
5560
return await super().convert(ctx, arg)
5661
except BadArgument as e:

0 commit comments

Comments
 (0)