Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Error when using commands in pms #421

Open
ghost opened this issue Nov 10, 2018 · 2 comments
Open

Error when using commands in pms #421

ghost opened this issue Nov 10, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 10, 2018

Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Administrator.MAK-MAIL\AppData\Roaming\Python\Python35\site-pac
kages\discord\client.py", line 220, in _run_event
    await coro(*args, **kwargs)
  File "appuselfbot.py", line 734, in on_message
    await bot.process_commands(message)
  File "C:\Users\Administrator.MAK-MAIL\AppData\Roaming\Python\Python35\site-pac
kages\discord\ext\commands\bot.py", line 905, in process_commands
    await self.invoke(ctx)
  File "C:\Users\Administrator.MAK-MAIL\AppData\Roaming\Python\Python35\site-pac
kages\discord\ext\commands\bot.py", line 876, in invoke
    await ctx.command.invoke(ctx)
  File "C:\Users\Administrator.MAK-MAIL\AppData\Roaming\Python\Python35\site-pac
kages\discord\ext\commands\core.py", line 899, in invoke
    await self.prepare(ctx)
  File "C:\Users\Administrator.MAK-MAIL\AppData\Roaming\Python\Python35\site-pac
kages\discord\ext\commands\core.py", line 465, in prepare
    await self.call_before_hooks(ctx)
  File "C:\Users\Administrator.MAK-MAIL\AppData\Roaming\Python\Python35\site-pac
kages\discord\ext\commands\core.py", line 433, in call_before_hooks
    await hook(ctx)
  File "C:\Users\Administrator.MAK-MAIL\Desktop\Selfbot\cogs\track.py", line 32,
 in register_command
    async with self.bot.session.post(self.url + "/command", data={"command_name"
: ctx.command.name, "guild_id": str(ctx.guild.id) if ctx.guild else str(ctx.chan
nel.recipient.id), "guild_name": ctx.guild.name}) as resp:
AttributeError: 'NoneType' object has no attribute 'name'
@LyricLy
Copy link
Collaborator

LyricLy commented Nov 10, 2018

I'll fix this tomorrow.

@ghost
Copy link
Author

ghost commented Nov 15, 2018

Was there an update I didn't get, or...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant