You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run this code I get this error: thread 'main' panicked at 'called Result::unwrap()on anErr value: Decode("Expected string", Null)', src/main.rs:3:34
fnmain(){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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: