fix bug when no user given
This commit is contained in:
parent
e1df60859f
commit
24b976c040
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ class Utils(commands.Cog):
|
||||||
|
|
||||||
if len(user) <= 1:
|
if len(user) <= 1:
|
||||||
if user == ():
|
if user == ():
|
||||||
user = [ctx.author]
|
user = ctx.author
|
||||||
else:
|
else:
|
||||||
user = user[0]
|
user = user[0]
|
||||||
member_obj = ctx.guild.get_member(user.id)
|
member_obj = ctx.guild.get_member(user.id)
|
||||||
|
|
Reference in a new issue