{"action":"created","issue":{"url":"https://api.github.com/repos/RogueException/Discord.Net/issues/443","repository_url":"https://api.github.com/repos/RogueException/Discord.Net","labels_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/443/comments","events_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/443/events","html_url":"https://github.com/RogueException/Discord.Net/issues/443","id":197634656,"number":443,"title":"Cannot update bot avatar","user":{"login":"Scorr","id":1729718,"avatar_url":"https://avatars.githubusercontent.com/u/1729718?v=3","gravatar_id":"","url":"https://api.github.com/users/Scorr","html_url":"https://github.com/Scorr","followers_url":"https://api.github.com/users/Scorr/followers","following_url":"https://api.github.com/users/Scorr/following{/other_user}","gists_url":"https://api.github.com/users/Scorr/gists{/gist_id}","starred_url":"https://api.github.com/users/Scorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scorr/subscriptions","organizations_url":"https://api.github.com/users/Scorr/orgs","repos_url":"https://api.github.com/users/Scorr/repos","events_url":"https://api.github.com/users/Scorr/events{/privacy}","received_events_url":"https://api.github.com/users/Scorr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-27T02:12:53Z","updated_at":"2016-12-27T02:29:11Z","closed_at":null,"body":"In a command:\r\n```cs\r\nvar fileStream = new FileStream(Directory.GetCurrentDirectory() + \"/newAvatar.jpg\", FileMode.Open);\r\nvar image = new Image(fileStream);\r\nawait Context.Client.CurrentUser.ModifyAsync(u => u.Avatar = image);\r\n```\r\nAny operations after the last line will not run, just seems to hang. No errors or timeouts.\r\nIn my case I confirmed that filestream is valid and image returns a proper Image.\r\n\r\nedit: running 1.0.0-beta2-00523"},"comment":{"url":"https://api.github.com/repos/RogueException/Discord.Net/issues/comments/269259691","html_url":"https://github.com/RogueException/Discord.Net/issues/443#issuecomment-269259691","issue_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/443","id":269259691,"user":{"login":"Scorr","id":1729718,"avatar_url":"https://avatars.githubusercontent.com/u/1729718?v=3","gravatar_id":"","url":"https://api.github.com/users/Scorr","html_url":"https://github.com/Scorr","followers_url":"https://api.github.com/users/Scorr/followers","following_url":"https://api.github.com/users/Scorr/following{/other_user}","gists_url":"https://api.github.com/users/Scorr/gists{/gist_id}","starred_url":"https://api.github.com/users/Scorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scorr/subscriptions","organizations_url":"https://api.github.com/users/Scorr/orgs","repos_url":"https://api.github.com/users/Scorr/repos","events_url":"https://api.github.com/users/Scorr/events{/privacy}","received_events_url":"https://api.github.com/users/Scorr/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T02:29:11Z","updated_at":"2016-12-27T02:29:11Z","body":"Actually when trying the local file with Sync I'm getting\r\n`Error getting value from 'ReadTimeout' on 'System.IO.FileStream'.`\r\nwhen performing the ModifyAsync()\r\nThought this might be an user error, but dunno what would cause it since no errors occur until ModifyAsync().\r\nGrabbing a memorystream from a downloaded message (which is what I had been using for testing) doesn't return that error on async/sync, also just hangs. Same for local file with async (like original example)\r\n\r\nIt's completing all of the lines and creating a new Discord.Image (although that just seems to be storing a stream)."}}
{"actor":{"display_login":"Scorr"}}