1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Await the coroutine

This commit is contained in:
Phxntxm 2017-08-06 16:26:28 -05:00
parent 151b3c4ebf
commit f4ee4e81ae

View file

@ -165,7 +165,7 @@ class Interaction:
else:
converter = commands.converter.MemberConverter()
try:
user = converter.convert(ctx, user)
user = await converter.convert(ctx, user)
except commands.converter.BadArgument:
await ctx.send("Error: Could not find user: {}".format(user))
return
@ -210,7 +210,7 @@ class Interaction:
# Otherwise, try to convert to an actual member
converter = commands.converter.MemberConverter()
try:
player2 = converter.convert(ctx, player2)
player2 = await converter.convert(ctx, player2)
except commands.converter.BadArgument:
await ctx.send("Error: Could not find user: {}".format(player2))
return