Advertisement
swimmerhair

Swimbot Error

Dec 12th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "C:\Users\swimm\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
  3.     ret = await coro(*args, **kwargs)
  4.   File "c:\Users\swimm\OneDrive\Desktop\Swimbot\whois.py", line 236, in whois
  5.     embed = discord.Embed(title= f'**{user_obj.name}**', description= f'Current activity: **{user_obj.activity}**\nHighest role in server: **{ctx.guild.get_member(user_obj.id).top_role}**', timestamp=ctx.message.created_at, color=discord.Colour.from_hsv(random.random(), 1, 1))
  6. AttributeError: 'User' object has no attribute 'activity'
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement