{"action":"created","issue":{"url":"https://api.github.com/repos/discordjs/discord.js/issues/2415","repository_url":"https://api.github.com/repos/discordjs/discord.js","labels_url":"https://api.github.com/repos/discordjs/discord.js/issues/2415/labels{/name}","comments_url":"https://api.github.com/repos/discordjs/discord.js/issues/2415/comments","events_url":"https://api.github.com/repos/discordjs/discord.js/issues/2415/events","html_url":"https://github.com/discordjs/discord.js/issues/2415","id":306728603,"number":2415,"title":"messageDelete Not firing","user":{"login":"sekwah41","id":3209834,"avatar_url":"https://avatars1.githubusercontent.com/u/3209834?v=4","gravatar_id":"","url":"https://api.github.com/users/sekwah41","html_url":"https://github.com/sekwah41","followers_url":"https://api.github.com/users/sekwah41/followers","following_url":"https://api.github.com/users/sekwah41/following{/other_user}","gists_url":"https://api.github.com/users/sekwah41/gists{/gist_id}","starred_url":"https://api.github.com/users/sekwah41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sekwah41/subscriptions","organizations_url":"https://api.github.com/users/sekwah41/orgs","repos_url":"https://api.github.com/users/sekwah41/repos","events_url":"https://api.github.com/users/sekwah41/events{/privacy}","received_events_url":"https://api.github.com/users/sekwah41/received_events","type":"User","site_admin":false},"labels":[{"id":246168567,"url":"https://api.github.com/repos/discordjs/discord.js/labels/s:%20invalid","name":"s: invalid","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-20T04:49:11Z","updated_at":"2018-03-20T09:07:09Z","closed_at":"2018-03-20T04:50:08Z","author_association":"NONE","body":"<!--\r\nIf you need help with discord.js installation or usage, please go to the discord.js Discord server instead:\r\n  https://discord.gg/bRCvFy9\r\nThis issue tracker is only for bug reports and enhancement suggestions. You won't receive any basic help here.\r\n-->\r\n\r\n**Please describe the problem you are having in as much detail as possible:**\r\nMessage delete isnt triggering anything at all if the message is made before the bot has started.\r\n\r\n**Include a reproducible code sample here, if possible:**\r\n```js\r\nconst fs = require('fs');\r\n\r\n//https://discord.js.org/#/docs/main/stable/general/welcome\r\nconst Discord = require('discord.js');\r\nconst client = new Discord.Client();\r\n\r\nclient.on('ready', () => {\r\n    console.log(`Logged in as ${client.user.tag}!`);\r\n});\r\n\r\nclient.on(\"messageDelete\", function(msg) {\r\n        console.log(\"MESSAGE\", msg);\r\n});\r\nclient.on('message', msg => {\r\n\r\n});\r\n```\r\n\r\n**Further details:**\r\n\r\n- discord.js version: 11.3.2\r\n- node.js version:8.9.4\r\n- Operating system: Windows 10\r\n- Priority this issue should have – Low, not needed immediately but its annoying as its not erroring but it just doesn't trigger at all.\r\n\r\nI've seen some other info on this where one said the info isnt there in the first place and another saying that it returns undefined however im not sure if this is a different issue or what but it doesn't trigger at all not even with undefined values in it which is possible because eris and others still trigger on the events.\r\n\r\n<!--\r\nIf either of these applies to you, please check the respective checkbox: [ ] becomes [x].\r\nYou don't have to modify the text to suit your particular situation, if you want to\r\nelaborate please do so in the description.\r\nWhile it's not a requirement to test your issue on the master branch, it would make fixing\r\nthe problem a lot easier for us, so please do it if possible.\r\n-->\r\n- [ ] I found this issue while running code on a __user account__\r\n- [ ] I have also tested the issue on latest master, commit hash:\r\n"},"comment":{"url":"https://api.github.com/repos/discordjs/discord.js/issues/comments/374524012","html_url":"https://github.com/discordjs/discord.js/issues/2415#issuecomment-374524012","issue_url":"https://api.github.com/repos/discordjs/discord.js/issues/2415","id":374524012,"user":{"login":"sekwah41","id":3209834,"avatar_url":"https://avatars1.githubusercontent.com/u/3209834?v=4","gravatar_id":"","url":"https://api.github.com/users/sekwah41","html_url":"https://github.com/sekwah41","followers_url":"https://api.github.com/users/sekwah41/followers","following_url":"https://api.github.com/users/sekwah41/following{/other_user}","gists_url":"https://api.github.com/users/sekwah41/gists{/gist_id}","starred_url":"https://api.github.com/users/sekwah41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sekwah41/subscriptions","organizations_url":"https://api.github.com/users/sekwah41/orgs","repos_url":"https://api.github.com/users/sekwah41/repos","events_url":"https://api.github.com/users/sekwah41/events{/privacy}","received_events_url":"https://api.github.com/users/sekwah41/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T09:07:09Z","updated_at":"2018-03-20T09:07:09Z","author_association":"NONE","body":"@BigBrainAFK i never said that, please actually read what i put. I was saying other ones trigger even with empty data because a message has been removed. Nowhere in the documentation does it say the actual event itsself regardless of the data it gives or possible lack of data it could give does it say it only triggers if the message is cached. Its like if in minecraft you didnt trigger an on command data for the terminal just because it doesn't have player data... (terrible example but sorta along the same lines) there is still data there so either it should be added or the documentation should be updated to say it only triggers for cached messages. That was my whole point in response to him just a better clarification and arguing the point that the current description doesn't state that behavior."}}
{"actor":{"display_login":"sekwah41"}}