Skip to content

Commit

Permalink
Log potential issues
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Apr 30, 2021
1 parent 3bf57e6 commit 21d4bd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ impl EventHandler for Handler {
{
Some(channel_id) => channel_id,
None => {
println!("Could not find user in VC.");
continue;
}
};
Expand All @@ -133,6 +134,8 @@ impl EventHandler for Handler {
handler.set_bitrate(songbird::Bitrate::Auto);

handler.play_source(source);
} else {
println!("Could not fetch guild by ID.");
}
}

Expand Down

0 comments on commit 21d4bd8

Please sign in to comment.