{"action":"created","issue":{"url":"https://api.github.com/repos/Rapptz/discord.py/issues/1371","repository_url":"https://api.github.com/repos/Rapptz/discord.py","labels_url":"https://api.github.com/repos/Rapptz/discord.py/issues/1371/labels{/name}","comments_url":"https://api.github.com/repos/Rapptz/discord.py/issues/1371/comments","events_url":"https://api.github.com/repos/Rapptz/discord.py/issues/1371/events","html_url":"https://github.com/Rapptz/discord.py/issues/1371","id":335138987,"node_id":"MDU6SXNzdWUzMzUxMzg5ODc=","number":1371,"title":"TypeError: event() missing 1 required positional argument: 'coro'","user":{"login":"WxyLife","id":36007101,"node_id":"MDQ6VXNlcjM2MDA3MTAx","avatar_url":"https://avatars2.githubusercontent.com/u/36007101?v=4","gravatar_id":"","url":"https://api.github.com/users/WxyLife","html_url":"https://github.com/WxyLife","followers_url":"https://api.github.com/users/WxyLife/followers","following_url":"https://api.github.com/users/WxyLife/following{/other_user}","gists_url":"https://api.github.com/users/WxyLife/gists{/gist_id}","starred_url":"https://api.github.com/users/WxyLife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WxyLife/subscriptions","organizations_url":"https://api.github.com/users/WxyLife/orgs","repos_url":"https://api.github.com/users/WxyLife/repos","events_url":"https://api.github.com/users/WxyLife/events{/privacy}","received_events_url":"https://api.github.com/users/WxyLife/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-23T23:44:47Z","updated_at":"2018-06-23T23:48:56Z","closed_at":null,"author_association":"NONE","body":"I didn't get it...\r\n\r\n---------------------------------------------------------------------------\r\nC:\\Users\\WxyLife_\\PycharmProjects\\WxyBot\\venv\\Scripts\\python.exe C:/Users/WxyLife_/PycharmProjects/WxyBot/main.py\r\nTraceback (most recent call last):\r\n  File \"C:/Users/WxyLife_/PycharmProjects/WxyBot/main.py\", line 10, in <module>\r\n    @asyncio.coroutine\r\nTypeError: event() missing 1 required positional argument: 'coro'\r\n\r\nProcess finished with exit code 1\r\n\r\n--------------------------------------------------------------------------\r\n\r\nimport asyncio as asyncio\r\nimport discord\r\n\r\nimport SECRETS\r\n\r\nclient = discord.Client\r\n\r\n\r\n@client.event\r\n@asyncio.coroutine\r\nasync def on_ready():\r\n    print(\"--------------------------------\")\r\n    print(\"Der WxyBot wurde gestartet.\")\r\n    print(\"Version 0.1\")\r\n    print(\"Made by Nutzloses Wesen.#8038\")\r\n    print(\"Auf folgenden Server zu finden:\\n\")\r\n    for s in client.servers:\r\n        print(\" - %s (%s)\" % (s.name, s.id))\r\n    print(\"--------------------------------\")\r\n\r\nclient.run(SECRETS.TOKEN)\r\n\r\n-----------------------------------------------------------------------\r\n\r\n\r\nOr i'm just stupid... ._."},"comment":{"url":"https://api.github.com/repos/Rapptz/discord.py/issues/comments/399718016","html_url":"https://github.com/Rapptz/discord.py/issues/1371#issuecomment-399718016","issue_url":"https://api.github.com/repos/Rapptz/discord.py/issues/1371","id":399718016,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTcxODAxNg==","user":{"login":"Harmon758","id":9403740,"node_id":"MDQ6VXNlcjk0MDM3NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/9403740?v=4","gravatar_id":"","url":"https://api.github.com/users/Harmon758","html_url":"https://github.com/Harmon758","followers_url":"https://api.github.com/users/Harmon758/followers","following_url":"https://api.github.com/users/Harmon758/following{/other_user}","gists_url":"https://api.github.com/users/Harmon758/gists{/gist_id}","starred_url":"https://api.github.com/users/Harmon758/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harmon758/subscriptions","organizations_url":"https://api.github.com/users/Harmon758/orgs","repos_url":"https://api.github.com/users/Harmon758/repos","events_url":"https://api.github.com/users/Harmon758/events{/privacy}","received_events_url":"https://api.github.com/users/Harmon758/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T23:48:56Z","updated_at":"2018-06-23T23:48:56Z","author_association":"CONTRIBUTOR","body":"This is erroring because `@asyncio.coroutine` is unnecessarily redundant when you're already defining `on_ready` as a coroutine with `async def`.\r\n\r\nFor future questions like this, you should join either the [official discord.py server](https://discord.gg/r3sSKJJ) or the [Discord API server](https://discord.gg/discord-api) for help, as the README recommends.\r\n"}}
{"actor":{"display_login":"Harmon758"}}