This is comment for paste
Swimbot Error
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This error message is indicating that an AttributeError occurred in the file "/home/pi/Swimbot/whois.py" on line 294. Specifically, the error is that a 'NoneType' object (an object that does not have a value) does not have an attribute called 'avatar_url'.
- It seems the code is trying to access the avatar_url attribute of a discord member object. But the object returned by ctx.message.guild.get_member(ctx.message.author.id) is None, so it cannot access the attribute.
- It is likely that the member is not found in the guild, and thus ctx.message.guild.get_member(ctx.message.author.id) return None.
- You should check the code before this line and make sure the member exists in the guild before trying to access its avatar_url.
- According to CHatGPT.
- Just playing...
- Greetings, MrLunk
Advertisement
Add Comment
Please, Sign In to add comment