Advertisement
swimmerhair

Swimbot Error

Dec 31st, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 85, in wrapped
  3.     ret = await coro(*args, **kwargs)
  4.   File "/home/pi/Swimbot/whois.py", line 232, in whois
  5.     embed = discord.Embed(title= f'**{ctx.message.guild.get_member(ctx.message.raw_mentions[0]).name}**', description= f'Current activity: **{ctx.message.guild.get_member(ctx.message.raw_mentions[0]).activity}**\nHighest role in server: **{ctx.message.guild.get_member(ctx.message.raw_mentions[0]).top_role}**', timestamp=ctx.message.created_at, color=discord.Colour.from_hsv(random.random(), 1, 1))
  6. AttributeError: 'NoneType' object has no attribute 'name'
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement