{"action":"created","issue":{"url":"https://api.github.com/repos/dirigeants/klasa/issues/484","repository_url":"https://api.github.com/repos/dirigeants/klasa","labels_url":"https://api.github.com/repos/dirigeants/klasa/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/dirigeants/klasa/issues/484/comments","events_url":"https://api.github.com/repos/dirigeants/klasa/issues/484/events","html_url":"https://github.com/dirigeants/klasa/issues/484","id":379426898,"node_id":"MDU6SXNzdWUzNzk0MjY4OTg=","number":484,"title":"SettingsGateway doc \"async function()\" => SyntaxError: Unexpected token (","user":{"login":"j2l","id":65325,"node_id":"MDQ6VXNlcjY1MzI1","avatar_url":"https://avatars2.githubusercontent.com/u/65325?v=4","gravatar_id":"","url":"https://api.github.com/users/j2l","html_url":"https://github.com/j2l","followers_url":"https://api.github.com/users/j2l/followers","following_url":"https://api.github.com/users/j2l/following{/other_user}","gists_url":"https://api.github.com/users/j2l/gists{/gist_id}","starred_url":"https://api.github.com/users/j2l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2l/subscriptions","organizations_url":"https://api.github.com/users/j2l/orgs","repos_url":"https://api.github.com/users/j2l/repos","events_url":"https://api.github.com/users/j2l/events{/privacy}","received_events_url":"https://api.github.com/users/j2l/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-10T14:30:29Z","updated_at":"2018-11-10T14:40:32Z","closed_at":null,"author_association":"NONE","body":"Since https://discord.gg/FpEFSyY is down\r\n\r\n### Describe the issue\r\nFollowing the [docs](https://klasa.js.org/#/docs/klasa/stable/Tutorials/UnderstandingSettingGateway), I get\r\n```\r\nSyntaxError: Unexpected token (\r\n    at createScript (vm.js:80:10)\r\n    at Object.runInThisContext (vm.js:139:10)\r\n    at Module._compile (module.js:617:28)\r\n    at Object.Module._extensions..js (module.js:664:10)\r\n    at Module.load (module.js:566:32)\r\n    at tryModuleLoad (module.js:506:12)\r\n    at Function.Module._load (module.js:498:3)\r\n    at Function.Module.runMain (module.js:694:10)\r\n    at startup (bootstrap_node.js:204:16)\r\n    at bootstrap_node.js:625:3\r\n[nodemon] app crashed - waiting for file changes before starting..\r\n```\r\n### Code or steps to reproduce\r\nadd the async function after the login:\r\n```\r\nclient.login(token);\r\nasync function() {\r\n  if (!client.settings.guilds.schema.modlog) {\r\n    await client.settings.guilds.add(\"modlog\", { type: \"TextChannel\" });\r\n  }\r\n}\r\n```\r\n\r\n### Expected and actual behavior\r\nWorks\r\n\r\n### Further details\r\n\r\n- **discord.js version**: 0.12\r\n- **node.js version**: 8.12\r\n- **Klasa version**: 0.5\r\n- [ ] I have modified core files.\r\n- [x ] I have tested the issue on latest master. Commit hash:\r\nhow?"},"comment":{"url":"https://api.github.com/repos/dirigeants/klasa/issues/comments/437588411","html_url":"https://github.com/dirigeants/klasa/issues/484#issuecomment-437588411","issue_url":"https://api.github.com/repos/dirigeants/klasa/issues/484","id":437588411,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzU4ODQxMQ==","user":{"login":"kyranet","id":24852502,"node_id":"MDQ6VXNlcjI0ODUyNTAy","avatar_url":"https://avatars0.githubusercontent.com/u/24852502?v=4","gravatar_id":"","url":"https://api.github.com/users/kyranet","html_url":"https://github.com/kyranet","followers_url":"https://api.github.com/users/kyranet/followers","following_url":"https://api.github.com/users/kyranet/following{/other_user}","gists_url":"https://api.github.com/users/kyranet/gists{/gist_id}","starred_url":"https://api.github.com/users/kyranet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyranet/subscriptions","organizations_url":"https://api.github.com/users/kyranet/orgs","repos_url":"https://api.github.com/users/kyranet/repos","events_url":"https://api.github.com/users/kyranet/events{/privacy}","received_events_url":"https://api.github.com/users/kyranet/received_events","type":"User","site_admin":false},"created_at":"2018-11-10T14:40:32Z","updated_at":"2018-11-10T14:40:32Z","author_association":"MEMBER","body":"You're reading stable docs, `client.settings` was renamed to `client.gateways`.\r\nI have created an invite link for you, expires after 1 day or 1 usage: https://discord.gg/CgJ86P"}}
{"actor":{"display_login":"kyranet"}}