Discolink
GitHub
Preparing search index...
Typings
PlayerEventMap
Interface PlayerEventMap
interface
PlayerEventMap
{
init
:
[
]
;
nodeConnect
:
[
node
:
Node
,
reconnects
:
number
]
;
nodeReady
:
[
node
:
Node
,
resumed
:
boolean
,
sessionId
:
string
]
;
nodeDispatch
:
[
node
:
Node
,
payload
:
MessagePayload
]
;
nodeError
:
[
node
:
Node
,
error
:
Error
]
;
nodeClose
:
[
node
:
Node
,
code
:
number
,
reason
:
string
]
;
nodeDisconnect
:
[
node
:
Node
,
code
:
number
,
reason
:
string
,
byLocal
:
boolean
,
]
;
voiceConnect
:
[
voice
:
VoiceState
]
;
voiceClose
:
[
voice
:
VoiceState
,
code
:
number
,
reason
:
string
,
byRemote
:
boolean
,
]
;
voiceChange
:
[
voice
:
VoiceState
,
previousNode
:
Node
,
wasPlaying
:
boolean
]
;
voiceDestroy
:
[
voice
:
VoiceState
,
reason
:
PlayerDestroyReasons
]
;
queueCreate
:
[
queue
:
Queue
<
EmptyObject
>
]
;
queueUpdate
:
[
queue
:
Queue
<
EmptyObject
>
,
state
:
PlayerState
]
;
queueFinish
:
[
queue
:
Queue
<
EmptyObject
>
]
;
queueDestroy
:
[
queue
:
Queue
<
EmptyObject
>
,
reason
:
PlayerDestroyReasons
]
;
trackStart
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
]
;
trackStuck
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
thresholdMs
:
number
,
]
;
trackError
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
exception
:
Exception
,
]
;
trackFinish
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
reason
:
TrackEndReason
,
]
;
[
key
:
string
&
{}
]:
any
;
}
Hierarchy
Record
<
string
&
{}
,
any
>
PlayerEventMap
Indexable
[
key
:
string
&
{}
]:
any
Index
Properties
init
node
Connect
node
Ready
node
Dispatch
node
Error
node
Close
node
Disconnect
voice
Connect
voice
Close
voice
Change
voice
Destroy
queue
Create
queue
Update
queue
Finish
queue
Destroy
track
Start
track
Stuck
track
Error
track
Finish
Properties
init
init
:
[
]
node
Connect
nodeConnect
:
[
node
:
Node
,
reconnects
:
number
]
node
Ready
nodeReady
:
[
node
:
Node
,
resumed
:
boolean
,
sessionId
:
string
]
node
Dispatch
nodeDispatch
:
[
node
:
Node
,
payload
:
MessagePayload
]
node
Error
nodeError
:
[
node
:
Node
,
error
:
Error
]
node
Close
nodeClose
:
[
node
:
Node
,
code
:
number
,
reason
:
string
]
node
Disconnect
nodeDisconnect
:
[
node
:
Node
,
code
:
number
,
reason
:
string
,
byLocal
:
boolean
]
voice
Connect
voiceConnect
:
[
voice
:
VoiceState
]
voice
Close
voiceClose
:
[
voice
:
VoiceState
,
code
:
number
,
reason
:
string
,
byRemote
:
boolean
]
voice
Change
voiceChange
:
[
voice
:
VoiceState
,
previousNode
:
Node
,
wasPlaying
:
boolean
]
voice
Destroy
voiceDestroy
:
[
voice
:
VoiceState
,
reason
:
PlayerDestroyReasons
]
queue
Create
queueCreate
:
[
queue
:
Queue
<
EmptyObject
>
]
queue
Update
queueUpdate
:
[
queue
:
Queue
<
EmptyObject
>
,
state
:
PlayerState
]
queue
Finish
queueFinish
:
[
queue
:
Queue
<
EmptyObject
>
]
queue
Destroy
queueDestroy
:
[
queue
:
Queue
<
EmptyObject
>
,
reason
:
PlayerDestroyReasons
]
track
Start
trackStart
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
]
track
Stuck
trackStuck
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
thresholdMs
:
number
,
]
track
Error
trackError
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
exception
:
Exception
,
]
track
Finish
trackFinish
:
[
queue
:
Queue
<
EmptyObject
>
,
track
:
Track
<
EmptyObject
,
EmptyObject
>
,
reason
:
TrackEndReason
,
]
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
init
node
Connect
node
Ready
node
Dispatch
node
Error
node
Close
node
Disconnect
voice
Connect
voice
Close
voice
Change
voice
Destroy
queue
Create
queue
Update
queue
Finish
queue
Destroy
track
Start
track
Stuck
track
Error
track
Finish
GitHub
Discolink
Loading...