1
0
Fork 0
mirror of synced 2024-06-26 18:21:15 +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: else:
converter = commands.converter.MemberConverter() converter = commands.converter.MemberConverter()
try: try:
user = converter.convert(ctx, user) user = await converter.convert(ctx, user)
except commands.converter.BadArgument: except commands.converter.BadArgument:
await ctx.send("Error: Could not find user: {}".format(user)) await ctx.send("Error: Could not find user: {}".format(user))
return return
@ -210,7 +210,7 @@ class Interaction:
# Otherwise, try to convert to an actual member # Otherwise, try to convert to an actual member
converter = commands.converter.MemberConverter() converter = commands.converter.MemberConverter()
try: try:
player2 = converter.convert(ctx, player2) player2 = await converter.convert(ctx, player2)
except commands.converter.BadArgument: except commands.converter.BadArgument:
await ctx.send("Error: Could not find user: {}".format(player2)) await ctx.send("Error: Could not find user: {}".format(player2))
return return