{"action":"created","issue":{"url":"https://api.github.com/repos/SpaceManiac/discord-rs/issues/15","repository_url":"https://api.github.com/repos/SpaceManiac/discord-rs","labels_url":"https://api.github.com/repos/SpaceManiac/discord-rs/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/SpaceManiac/discord-rs/issues/15/comments","events_url":"https://api.github.com/repos/SpaceManiac/discord-rs/issues/15/events","html_url":"https://github.com/SpaceManiac/discord-rs/issues/15","id":156026997,"number":15,"title":"Simple example can't be compiled","user":{"login":"vityafx","id":1146369,"avatar_url":"https://avatars.githubusercontent.com/u/1146369?v=3","gravatar_id":"","url":"https://api.github.com/users/vityafx","html_url":"https://github.com/vityafx","followers_url":"https://api.github.com/users/vityafx/followers","following_url":"https://api.github.com/users/vityafx/following{/other_user}","gists_url":"https://api.github.com/users/vityafx/gists{/gist_id}","starred_url":"https://api.github.com/users/vityafx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vityafx/subscriptions","organizations_url":"https://api.github.com/users/vityafx/orgs","repos_url":"https://api.github.com/users/vityafx/repos","events_url":"https://api.github.com/users/vityafx/events{/privacy}","received_events_url":"https://api.github.com/users/vityafx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-20T18:46:28Z","updated_at":"2016-05-20T20:39:06Z","closed_at":null,"body":"When I try to compile the example from [here](https://github.com/SpaceManiac/discord-rs/blob/master/examples/basic_chatbot.rs) as it is I have a lot of errors:\r\n\r\n```\r\nmain.rs:30:17: 30:51 error: no associated item named `Closed` found for type `discord::error::Error` in the current scope\r\nmain.rs:30             Err(discord::Error::Closed(code, body)) => {\r\n                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nmain.rs:30:46: 30:50 error: the trait `core::marker::Sized` is not implemented for the type `[u8]` [E0277]\r\nmain.rs:30             Err(discord::Error::Closed(code, body)) => {\r\n                                                        ^~~~\r\nmain.rs:30:46: 30:50 help: run `rustc --explain E0277` to see a detailed explanation\r\nmain.rs:30:46: 30:50 note: `[u8]` does not have a constant size known at compile-time\r\nmain.rs:30:46: 30:50 note: all local variables must have a statically known size\r\nerror: aborting due to 2 previous errors\r\n\r\n```\r\nIs there something wrong with the example code?\r\n\r\nP.S. I am learning rust yet."},"comment":{"url":"https://api.github.com/repos/SpaceManiac/discord-rs/issues/comments/220712850","html_url":"https://github.com/SpaceManiac/discord-rs/issues/15#issuecomment-220712850","issue_url":"https://api.github.com/repos/SpaceManiac/discord-rs/issues/15","id":220712850,"user":{"login":"SpaceManiac","id":222630,"avatar_url":"https://avatars.githubusercontent.com/u/222630?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceManiac","html_url":"https://github.com/SpaceManiac","followers_url":"https://api.github.com/users/SpaceManiac/followers","following_url":"https://api.github.com/users/SpaceManiac/following{/other_user}","gists_url":"https://api.github.com/users/SpaceManiac/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceManiac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceManiac/subscriptions","organizations_url":"https://api.github.com/users/SpaceManiac/orgs","repos_url":"https://api.github.com/users/SpaceManiac/repos","events_url":"https://api.github.com/users/SpaceManiac/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceManiac/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T20:39:06Z","updated_at":"2016-05-20T20:39:06Z","body":"The examples on the `master` branch track the library on the `master` branch. To access the examples as they were for `0.5.0`, visit here: https://github.com/SpaceManiac/discord-rs/tree/v0.5.0/examples\r\n\r\nA next release will come soon. it is probably about time for one."}}
{"actor":{"display_login":"SpaceManiac"}}