Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 8672bca

Browse files
NaeginEvieePy
authored andcommitted
Fix TrackStuck 'threshold' KeyError.
1 parent 947f4db commit 8672bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wavelink/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _get_event(self, name: str, data) -> Union[TrackEnd, TrackStart, TrackExcept
160160
elif name == 'TrackExceptionEvent':
161161
return TrackException(data['player'], data['track'], data['error'])
162162
elif name == 'TrackStuckEvent':
163-
return TrackStuck(data['player'], data['track'], int(data['threshold']))
163+
return TrackStuck(data['player'], data['track'], int(data['thresholdMs']))
164164
elif name == 'WebSocketClosedEvent':
165165
return WebsocketClosed(data['player'], data['reason'], data['code'], data['guildId'])
166166

0 commit comments

Comments
 (0)