When I try to run this code I get this error:
thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: Decode("Expected string", Null)', src/main.rs:3:34
fn main() {
let dc = discord::Discord::from_user_token(&std::env::var("DC_TOKEN").expect("Set env var DC_TOKEN to discord user token")).unwrap();
let (con, re) = dc.connect().unwrap();
for rel in &re.relationships {
println!("{} > {}", rel.user.name, rel.id.0);
}
}
(I'm using the git version)
Not sure what's wrong.
When I try to run this code I get this error:
thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: Decode("Expected string", Null)', src/main.rs:3:34
(I'm using the git version) Not sure what's wrong.