Advertisement
swimmerhair

Swimbot Error

Dec 11th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.43 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/.local/lib/python3.7/site-packages/discord/ext/commands/help.py", line 836, in command_callback
  5.     return await self.send_bot_help(mapping)
  6.   File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/help.py", line 1026, in send_bot_help
  7.     filtered = await self.filter_commands(bot.commands, sort=True, key=get_category)
  8.   File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/help.py", line 577, in filter_commands
  9.     valid = await predicate(cmd)
  10.   File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/help.py", line 571, in predicate
  11.     return await cmd.can_run(self.context)
  12.   File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 1076, in can_run
  13.     return await discord.utils.async_all(predicate(ctx) for predicate in predicates)
  14.   File "/home/pi/.local/lib/python3.7/site-packages/discord/utils.py", line 338, in async_all
  15.     for elem in gen:
  16.   File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 1076, in <genexpr>
  17.     return await discord.utils.async_all(predicate(ctx) for predicate in predicates)
  18.   File "/home/pi/Swimbot/premium.py", line 33, in premium_check
  19.     roles = member.roles
  20. AttributeError: 'NoneType' object has no attribute 'roles'
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement