diff --git a/ccrole/ccrole.py b/ccrole/ccrole.py index c71eb40..149deb7 100644 --- a/ccrole/ccrole.py +++ b/ccrole/ccrole.py @@ -293,7 +293,7 @@ class CCRole(Cog): if cmd["targeted"]: try: target = discord.utils.get( - message.guild.members, mention=message.content.split()[1] + message.guild.members, mention=message.content.split(maxsplit=1)[1] ) except IndexError: # .split() return list of len<2 target = None