Skip to content

Commit

Permalink
Disconnect on leave
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Mar 27, 2024
1 parent f55b852 commit a003e66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/Music/Commands/Leave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class LeaveCommand : MusicCommand<LeaveCommand>
public async Task Leave()
{
await Player.StopAsync();
await Player.DisconnectAsync();

await RespondInteraction("Left this session, the queue has been cleaned");
}
Expand Down

0 comments on commit a003e66

Please sign in to comment.