Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thedtvn committed Jan 21, 2024
1 parent 32c604f commit b2c815c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ async fn accept_connection(ws_stream: WebSocket) {
let token = msg.get("token").unwrap().as_str().unwrap().to_string();
let guild_id = msg.get("guild_id").unwrap().as_str().unwrap().to_string().parse::<u64>().unwrap();
let endpoint = msg.get("endpoint").unwrap().as_str().unwrap();
dr.leave();
dr.connect(ConnectionInfo {channel_id: Some(ChannelId(NonZeroU64::new(channel_id).unwrap())), endpoint: endpoint.to_string(), guild_id: GuildId(NonZeroU64::new(guild_id).unwrap()), session_id: session_id.clone(), token, user_id: RawUserId(NonZeroU64::new(user_id).unwrap())}).await.unwrap();
} else if data_out == "PLAY" {
let dataout = data["url"].as_str().unwrap().to_string();
Expand Down
2 changes: 1 addition & 1 deletion src/obj_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl EventHandler for Callback {
"d": false
})
}
songbird::tracks::PlayMode::Stop | songbird::tracks::PlayMode::End => {
songbird::tracks::PlayMode::End => {
sucsess_stop
}
songbird::tracks::PlayMode::Errored(err ) => {
Expand Down

0 comments on commit b2c815c

Please sign in to comment.