Await the coroutine
This commit is contained in:
parent
151b3c4ebf
commit
f4ee4e81ae
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue