Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Ignoring exception in command niceroger:
  2. Traceback (most recent call last):
  3. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
  4. ret = await coro(*args, **kwargs)
  5. File "main.py", line 156, in niceroger
  6. await ctx.guild.ban(username, reason=reason)
  7. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/guild.py", line 2026, in ban
  8. await self._state.http.ban(user.id, self.id, delete_message_days, reason=reason)
  9. AttributeError: 'NoneType' object has no attribute 'id'
  10.  
  11. The above exception was the direct cause of the following exception:
  12.  
  13. Traceback (most recent call last):
  14. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
  15. await ctx.command.invoke(ctx)
  16. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
  17. await injected(*ctx.args, **ctx.kwargs)
  18. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
  19. raise CommandInvokeError(exc) from exc
  20. discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id'
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement