Send socket message when user access to dashboard

This commit is contained in:
Choco
2023-03-31 19:50:03 +08:00
parent 380b8cfaf1
commit 6a91bb4f98
2 changed files with 14 additions and 9 deletions

View File

@@ -509,7 +509,7 @@ class Basic(commands.Cog):
removedTrack = player.queue.remove(position1, position2, member=member)
if self.bot.ipc.connections and removedTrack:
if player.is_ipc_connected and removedTrack:
await player.send_ws({
"op": "removeTrack",
"positions": [track["position"] for track in removedTrack],