{"action":"created","issue":{"url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/435","repository_url":"https://api.github.com/repos/DV8FromTheWorld/JDA","labels_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/435/comments","events_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/435/events","html_url":"https://github.com/DV8FromTheWorld/JDA/issues/435","id":251434708,"number":435,"title":"Catching RestAction queue returned failure: [ErrorResponseException] 50007","user":{"login":"Alw7SHxD","id":15912596,"avatar_url":"https://avatars2.githubusercontent.com/u/15912596?v=4","gravatar_id":"","url":"https://api.github.com/users/Alw7SHxD","html_url":"https://github.com/Alw7SHxD","followers_url":"https://api.github.com/users/Alw7SHxD/followers","following_url":"https://api.github.com/users/Alw7SHxD/following{/other_user}","gists_url":"https://api.github.com/users/Alw7SHxD/gists{/gist_id}","starred_url":"https://api.github.com/users/Alw7SHxD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alw7SHxD/subscriptions","organizations_url":"https://api.github.com/users/Alw7SHxD/orgs","repos_url":"https://api.github.com/users/Alw7SHxD/repos","events_url":"https://api.github.com/users/Alw7SHxD/events{/privacy}","received_events_url":"https://api.github.com/users/Alw7SHxD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-19T16:18:14Z","updated_at":"2017-08-19T16:27:01Z","closed_at":null,"body":"while trying to send a private message using\r\n```java\r\nuser.openPrivateChannel().queue( (channel) -> channel.sendMessage(content).queue() );\r\n```\r\n\r\nit'll work fine for users with PM's unlocked for everyone, but with people that has their PM's locked it'll return\r\n```java\r\n[Fatal] [RestAction]: RestAction queue returned failure: [ErrorResponseException] 50007: Cannot send messages to this user\r\n```\r\n\r\nso the question is, is there a way to catch that? via `try` and `catch`? \r\n\r\nof course without using the `failure` parameter, which cannot do what i'm trying to achieve."},"comment":{"url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/comments/323533080","html_url":"https://github.com/DV8FromTheWorld/JDA/issues/435#issuecomment-323533080","issue_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/435","id":323533080,"user":{"login":"Alw7SHxD","id":15912596,"avatar_url":"https://avatars2.githubusercontent.com/u/15912596?v=4","gravatar_id":"","url":"https://api.github.com/users/Alw7SHxD","html_url":"https://github.com/Alw7SHxD","followers_url":"https://api.github.com/users/Alw7SHxD/followers","following_url":"https://api.github.com/users/Alw7SHxD/following{/other_user}","gists_url":"https://api.github.com/users/Alw7SHxD/gists{/gist_id}","starred_url":"https://api.github.com/users/Alw7SHxD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alw7SHxD/subscriptions","organizations_url":"https://api.github.com/users/Alw7SHxD/orgs","repos_url":"https://api.github.com/users/Alw7SHxD/repos","events_url":"https://api.github.com/users/Alw7SHxD/events{/privacy}","received_events_url":"https://api.github.com/users/Alw7SHxD/received_events","type":"User","site_admin":false},"created_at":"2017-08-19T16:27:01Z","updated_at":"2017-08-19T16:27:01Z","body":"so should i use `.submit()` instead?"}}
{"actor":{"display_login":"Alw7SHxD"}}