{"action":"created","issue":{"url":"https://api.github.com/repos/not-an-aardvark/snoowrap/issues/34","repository_url":"https://api.github.com/repos/not-an-aardvark/snoowrap","labels_url":"https://api.github.com/repos/not-an-aardvark/snoowrap/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/not-an-aardvark/snoowrap/issues/34/comments","events_url":"https://api.github.com/repos/not-an-aardvark/snoowrap/issues/34/events","html_url":"https://github.com/not-an-aardvark/snoowrap/issues/34","id":167794862,"number":34,"title":"content_md returning 'undefined' when attempting to print wiki page","user":{"login":"PictureGamer","id":20362589,"avatar_url":"https://avatars.githubusercontent.com/u/20362589?v=3","gravatar_id":"","url":"https://api.github.com/users/PictureGamer","html_url":"https://github.com/PictureGamer","followers_url":"https://api.github.com/users/PictureGamer/followers","following_url":"https://api.github.com/users/PictureGamer/following{/other_user}","gists_url":"https://api.github.com/users/PictureGamer/gists{/gist_id}","starred_url":"https://api.github.com/users/PictureGamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PictureGamer/subscriptions","organizations_url":"https://api.github.com/users/PictureGamer/orgs","repos_url":"https://api.github.com/users/PictureGamer/repos","events_url":"https://api.github.com/users/PictureGamer/events{/privacy}","received_events_url":"https://api.github.com/users/PictureGamer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T08:04:41Z","updated_at":"2016-07-27T15:19:01Z","closed_at":null,"body":"Even with mod permissions for my subreddit's wiki page, I'm unable to read the content of our Wiki page"},"comment":{"url":"https://api.github.com/repos/not-an-aardvark/snoowrap/issues/comments/235619286","html_url":"https://github.com/not-an-aardvark/snoowrap/issues/34#issuecomment-235619286","issue_url":"https://api.github.com/repos/not-an-aardvark/snoowrap/issues/34","id":235619286,"user":{"login":"PictureGamer","id":20362589,"avatar_url":"https://avatars.githubusercontent.com/u/20362589?v=3","gravatar_id":"","url":"https://api.github.com/users/PictureGamer","html_url":"https://github.com/PictureGamer","followers_url":"https://api.github.com/users/PictureGamer/followers","following_url":"https://api.github.com/users/PictureGamer/following{/other_user}","gists_url":"https://api.github.com/users/PictureGamer/gists{/gist_id}","starred_url":"https://api.github.com/users/PictureGamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PictureGamer/subscriptions","organizations_url":"https://api.github.com/users/PictureGamer/orgs","repos_url":"https://api.github.com/users/PictureGamer/repos","events_url":"https://api.github.com/users/PictureGamer/events{/privacy}","received_events_url":"https://api.github.com/users/PictureGamer/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T15:19:01Z","updated_at":"2016-07-27T15:19:01Z","body":"Sure, the running code is:\r\n\r\n```\r\nconst snoowrap = require('snoowrap');\r\nconst AuthDetails = require(\"./auth.json\");\r\n\r\nconst r = new snoowrap({\r\n  user_agent: AuthDetails.user_agent,\r\n  client_id: AuthDetails.client_id,\r\n  client_secret: AuthDetails.client_secret,\r\n  username: AuthDetails.username,\r\n  password: AuthDetails.password\r\n});\r\n\r\nr.get_subreddit('PictureGame').get_wiki_page('leaderboard').content_md.then(console.log);\r\n```\r\n\r\nAnd the error I receive is:\r\n\r\n```\r\nr.get_subreddit('PictureGame').get_wiki_page('leaderboard').content_md.then(console.log);\r\n                                                                      ^\r\n\r\nTypeError: Cannot read property 'then' of undefined\r\n    at Object.<anonymous> (/Users/XXX/Desktop/DiscordBotCopy/redditauth.js:11:71)\r\n    at Module._compile (module.js:409:26)\r\n    at Object.Module._extensions..js (module.js:416:10)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Function.Module.runMain (module.js:441:10)\r\n    at startup (node.js:139:18)\r\n    at node.js:968:3\r\n```\r\n\r\nThe other Wiki functions seem to operate properly however, i.e. \"get_settings()\" works just fine for me"}}
{"actor":{"display_login":"PictureGamer"}}