#Weird error

1 messages · Page 1 of 1 (latest)

sharp venture
#

So I'm trying to do that if you have something in the status that you get a role, everything works, only if I want you to take one of these 3 words I get this error all the time:

#

if self.status in str(after.activity).lower() and role not in after.roles:
TypeError: 'in <string>' requires string as left operand, not list

clear remnant
#

I think the error is that you are looking for a list in a string you want to look for a string in a list

sharp venture
#

💀

clear remnant
#

if str(after.activity).lower() in self.status and role not in after.roles:

#

that would be the correct way ^