fix bug when no user given

This commit is contained in:
Mylloon 2021-08-23 13:26:27 +02:00
parent e1df60859f
commit 24b976c040

View file

@ -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)