{"action":"created","issue":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1684","repository_url":"https://api.github.com/repos/hydrabolt/discord.js","labels_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1684/labels{/name}","comments_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1684/comments","events_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1684/events","html_url":"https://github.com/hydrabolt/discord.js/issues/1684","id":242152536,"number":1684,"title":"presenceUpdate Double Fire with Duplicate Members for oldMember and newMember","user":{"login":"xCykrix","id":12182390,"avatar_url":"https://avatars0.githubusercontent.com/u/12182390?v=4","gravatar_id":"","url":"https://api.github.com/users/xCykrix","html_url":"https://github.com/xCykrix","followers_url":"https://api.github.com/users/xCykrix/followers","following_url":"https://api.github.com/users/xCykrix/following{/other_user}","gists_url":"https://api.github.com/users/xCykrix/gists{/gist_id}","starred_url":"https://api.github.com/users/xCykrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xCykrix/subscriptions","organizations_url":"https://api.github.com/users/xCykrix/orgs","repos_url":"https://api.github.com/users/xCykrix/repos","events_url":"https://api.github.com/users/xCykrix/events{/privacy}","received_events_url":"https://api.github.com/users/xCykrix/received_events","type":"User","site_admin":false},"labels":[{"id":305464157,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/p:%20low","name":"p: low","color":"ffc9c9","default":false},{"id":432269242,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/s:%20in%20progress","name":"s: in progress","color":"db70ff","default":false},{"id":523306242,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/t:%20REST","name":"t: REST","color":"31e097","default":false},{"id":246168563,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/type:%20bug","name":"type: bug","color":"af310e","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-11T19:07:42Z","updated_at":"2017-08-26T12:43:52Z","closed_at":"2017-08-26T12:43:26Z","body":"**Please describe the problem you are having in as much detail as possible:**\r\nEvent presenceUpdate fires twice, oldMember and newMember being the same both times.\r\n\r\n**Include a reproducible code sample here, if possible:**\r\n```js\r\n$.client.on('presenceUpdate', (userbefore, userafter) => {\r\n    console.log(\"Update Event Fired for \" + userbefore.user.tag);\r\n\r\n    if(userbefore.user.presence.game === userafter.user.presence.game) {\r\n        return console.log(\"Same Game\"); // Logged Twice, same for both users.\r\n    }\r\n    console.log(\"GameBefore: \" + userbefore.user.presence.game.name);\r\n    console.log(\"GameAfter: \" + userafter.user.presence.game.name);\r\n});\r\n```\r\n\r\n**Further details:**\r\n\r\n- discord.js version: v11.1.0 and v12.0.0-dev\r\n- node.js version: v8.1.2\r\n- Operating system: WindowsOS\r\n- Priority this issue should have – please be realistic and elaborate if possible: Medium, it is not a huge issue but is entirely breaking if you need to rely on presence changes.\r\n\r\n- [ ] I found this issue while running code on a __user account__\r\n- [x] I have also tested the issue on latest master, commit hash: (v11.1.0: 04f0534) (v12.0.0: 111fa2d)\r\n"},"comment":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/comments/325123818","html_url":"https://github.com/hydrabolt/discord.js/issues/1684#issuecomment-325123818","issue_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1684","id":325123818,"user":{"login":"hydrabolt","id":10330923,"avatar_url":"https://avatars1.githubusercontent.com/u/10330923?v=4","gravatar_id":"","url":"https://api.github.com/users/hydrabolt","html_url":"https://github.com/hydrabolt","followers_url":"https://api.github.com/users/hydrabolt/followers","following_url":"https://api.github.com/users/hydrabolt/following{/other_user}","gists_url":"https://api.github.com/users/hydrabolt/gists{/gist_id}","starred_url":"https://api.github.com/users/hydrabolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydrabolt/subscriptions","organizations_url":"https://api.github.com/users/hydrabolt/orgs","repos_url":"https://api.github.com/users/hydrabolt/repos","events_url":"https://api.github.com/users/hydrabolt/events{/privacy}","received_events_url":"https://api.github.com/users/hydrabolt/received_events","type":"User","site_admin":false},"created_at":"2017-08-26T12:43:52Z","updated_at":"2017-08-26T12:43:52Z","body":"Fixed in that commit ^, as a sidenote use `member.presence` not `member.user.presence` because the latter is not really a real thing."}}
{"actor":{"display_login":"hydrabolt"}}