{"action":"created","issue":{"url":"https://api.github.com/repos/izy521/discord.io/issues/49","repository_url":"https://api.github.com/repos/izy521/discord.io","labels_url":"https://api.github.com/repos/izy521/discord.io/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/izy521/discord.io/issues/49/comments","events_url":"https://api.github.com/repos/izy521/discord.io/issues/49/events","html_url":"https://github.com/izy521/discord.io/issues/49","id":146720470,"number":49,"title":"Is their a event for users first connecting to the server","user":{"login":"LewisMcMahon","id":1665635,"avatar_url":"https://avatars.githubusercontent.com/u/1665635?v=3","gravatar_id":"","url":"https://api.github.com/users/LewisMcMahon","html_url":"https://github.com/LewisMcMahon","followers_url":"https://api.github.com/users/LewisMcMahon/followers","following_url":"https://api.github.com/users/LewisMcMahon/following{/other_user}","gists_url":"https://api.github.com/users/LewisMcMahon/gists{/gist_id}","starred_url":"https://api.github.com/users/LewisMcMahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LewisMcMahon/subscriptions","organizations_url":"https://api.github.com/users/LewisMcMahon/orgs","repos_url":"https://api.github.com/users/LewisMcMahon/repos","events_url":"https://api.github.com/users/LewisMcMahon/events{/privacy}","received_events_url":"https://api.github.com/users/LewisMcMahon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-07T19:28:27Z","updated_at":"2016-04-08T02:16:08Z","closed_at":"2016-04-08T00:20:53Z","body":"I want to be able to add a welcome to the server message to my bot"},"comment":{"url":"https://api.github.com/repos/izy521/discord.io/issues/comments/207177931","html_url":"https://github.com/izy521/discord.io/issues/49#issuecomment-207177931","issue_url":"https://api.github.com/repos/izy521/discord.io/issues/49","id":207177931,"user":{"login":"LewisMcMahon","id":1665635,"avatar_url":"https://avatars.githubusercontent.com/u/1665635?v=3","gravatar_id":"","url":"https://api.github.com/users/LewisMcMahon","html_url":"https://github.com/LewisMcMahon","followers_url":"https://api.github.com/users/LewisMcMahon/followers","following_url":"https://api.github.com/users/LewisMcMahon/following{/other_user}","gists_url":"https://api.github.com/users/LewisMcMahon/gists{/gist_id}","starred_url":"https://api.github.com/users/LewisMcMahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LewisMcMahon/subscriptions","organizations_url":"https://api.github.com/users/LewisMcMahon/orgs","repos_url":"https://api.github.com/users/LewisMcMahon/repos","events_url":"https://api.github.com/users/LewisMcMahon/events{/privacy}","received_events_url":"https://api.github.com/users/LewisMcMahon/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T02:16:08Z","updated_at":"2016-04-08T02:16:08Z","body":"That will work if you have connected to that server before but it you make a new account and have it join the server it won't.\n\nI think its to do with the fact you can only message someone who is on a server your on and when you leave a server you probably don't fully leave it on discord's end.\n\nOn 8 April 2016 03:08:09 BST, izy521 <notifications@github.com> wrote:\n>```js\n>bot.on('guildMemberAdd', function(member, event) {\n>\tif (event.d.guild_id !== TOWNER) return;\n>\tbot.sendMessage({\n>\t\tto: member.user.id,\n>\t\tmessage: \"Testing an entry message!\"\n>\t});\n>});\n>```\n>This worked for me.\n>\n>---\n>You are receiving this because you modified the open/close state.\n>Reply to this email directly or view it on GitHub:\n>https://github.com/izy521/discord.io/issues/49#issuecomment-207175639\n\n-- \nSent from my Android device with K-9 Mail. Please excuse my brevity."}}