{"action":"opened","issue":{"url":"https://api.github.com/repos/tekulvw/Squid-Plugins/issues/21","repository_url":"https://api.github.com/repos/tekulvw/Squid-Plugins","labels_url":"https://api.github.com/repos/tekulvw/Squid-Plugins/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/tekulvw/Squid-Plugins/issues/21/comments","events_url":"https://api.github.com/repos/tekulvw/Squid-Plugins/issues/21/events","html_url":"https://github.com/tekulvw/Squid-Plugins/issues/21","id":173100016,"number":21,"title":"permissions cog issue with cog update","user":{"login":"Aioxas","id":20670805,"avatar_url":"https://avatars.githubusercontent.com/u/20670805?v=3","gravatar_id":"","url":"https://api.github.com/users/Aioxas","html_url":"https://github.com/Aioxas","followers_url":"https://api.github.com/users/Aioxas/followers","following_url":"https://api.github.com/users/Aioxas/following{/other_user}","gists_url":"https://api.github.com/users/Aioxas/gists{/gist_id}","starred_url":"https://api.github.com/users/Aioxas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aioxas/subscriptions","organizations_url":"https://api.github.com/users/Aioxas/orgs","repos_url":"https://api.github.com/users/Aioxas/repos","events_url":"https://api.github.com/users/Aioxas/events{/privacy}","received_events_url":"https://api.github.com/users/Aioxas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T02:22:13Z","updated_at":"2016-08-25T02:22:13Z","closed_at":null,"body":"Posted below is the traceback that leads to this. As you can see, team is a command from irdumb's adventure cog. \r\n\r\nAfter setting pems for a command and uninstalling the cog that the command is contained in, then doing a cog update and saying yes to reload all. \r\n\r\nThis is fixable by deleting the command from the perms.json or reinstalling the cog, telling the bot to remove any perms related to that command, and uninstalling it again. Another last resort is to do perms reset.\r\n\r\nAlso. This causes the cog to not be reloaded/loaded. So it has to be manually loaded.\r\n\r\n\r\n[24/08/2016 22:08] ERROR red on_command_error 88: Exception in command 'cog update'\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\permissions.py\", line 141, in pred\r\n    return func(*args, **kwargs)\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\permissions.py\", line 170, in _get_command\r\n    ret = self.bot.commands[cmd.pop(0)]\r\nKeyError: 'team'\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\discord\\ext\\commands\\core.py\", line 50, in wrapped\r\n    ret = yield from coro(*args, **kwargs)\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\downloader.py\", line 171, in update\r\n    self.bot.unload_extension(\"cogs.\" + cog)\r\n  File \"C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\discord\\ext\\commands\\bot.py\", line 732, in unload_extension\r\n    self.remove_cog(cogname)\r\n  File \"C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\discord\\ext\\commands\\bot.py\", line 703, in remove_cog\r\n    unloader()\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\permissions.py\", line 112, in __unload\r\n    cmd = self._get_command(cmd_dot)\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\permissions.py\", line 143, in pred\r\n    raise exc from e\r\ncogs.permissions.BadCommand\r\nIgnoring exception in member_join\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\discord\\ext\\commands\\bot.py\", line 247, in _run_extra\r\n    yield from coro(*args, **kwargs)\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\welcome.py\", line 100, in member_join\r\n    if self.speak_permissions(server):\r\n  File \"C:\\Users\\USER\\Desktop\\Ram\\cogs\\welcome.py\", line 112, in speak_permissions\r\n    return server.get_member(self.bot.user.id).permissions_in(channel).send_messages\r\n  File \"C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\discord\\user.py\", line 119, in permissions_in\r\n    return channel.permissions_for(self)\r\nAttributeError: 'NoneType' object has no attribute 'permissions_for'"}}
{"actor":{"display_login":"Aioxas"}}