discord-mcbe
Preparing search index...
@discord-mcbe/client
bds
IBridgeClient
Interface IBridgeClient
interface
IBridgeClient
{
isConnected
:
boolean
;
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
;
notify
(
packet
:
|
{
data
:
{
player
:
{
name
:
string
;
nameTag
:
string
;
pfid
:
string
&
{
__brand
:
"Pfid"
}
;
platformType
:
PlatformType
;
uniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
;
}
;
type
:
PlayerJoin
;
}
|
{
data
:
{
playerUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
}
;
type
:
PlayerLeave
;
}
|
{
data
:
{
cause
:
EntityDamageCause
;
damagingEntity
?:
|
{
isPlayer
:
true
;
localizationKey
:
string
;
name
:
string
;
nameTag
:
string
;
typeId
:
string
;
}
|
{
isPlayer
:
false
;
localizationKey
:
string
;
nameTag
?:
string
;
typeId
:
string
;
}
;
playerUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
;
type
:
PlayerDie
;
}
|
{
data
:
{
formatting
?:
{
messagePrefix
?:
string
;
messageSuffix
?:
string
;
namePrefix
?:
string
;
nameSuffix
?:
string
;
}
;
message
:
string
;
senderName
:
string
;
senderUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
source
?:
string
;
}
;
type
:
ChatSend
;
}
|
{
data
:
{
message
:
v.CustomSchema
<
DiscordMessageJSON
,
undefined
>
;
source
:
string
;
}
;
type
:
DiscordSend
;
}
,
)
:
void
;
on
(
event
:
"connect"
,
listener
:
Listener
<
{
sessionId
:
string
}
>
)
:
void
;
on
(
event
:
"disconnect"
,
listener
:
Listener
<
{
reason
:
DisconnectReason
}
>
,
)
:
void
;
request
(
packet
:
|
Omit
<
{
data
:
{
protocolVersion
:
number
;
worldName
:
string
}
;
requestId
:
string
;
type
:
Connect
;
}
,
"requestId"
,
>
|
Omit
<
{
data
:
{
reason
:
DisconnectReason
}
;
requestId
:
string
;
type
:
Disconnect
;
}
,
"requestId"
,
>
|
Omit
<
{
data
:
{
players
:
{
name
:
string
;
nameTag
:
string
;
pfid
:
string
&
{
__brand
:
"Pfid"
}
;
platformType
:
PlatformType
;
uniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
[]
;
}
;
requestId
:
string
;
type
:
WorldInitialize
;
}
,
"requestId"
,
>
,
)
:
Promise
<
RequestResult
<
unknown
>
>
;
}
Implemented by
ServerNetBridgeClient
WebSocketBridgeClient
Index
Properties
is
Connected
Methods
disconnect
notify
on
request
Properties
is
Connected
isConnected
:
boolean
Methods
disconnect
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
Parameters
Optional
reason
:
DisconnectReason
Returns
Promise
<
void
>
notify
notify
(
packet
:
|
{
data
:
{
player
:
{
name
:
string
;
nameTag
:
string
;
pfid
:
string
&
{
__brand
:
"Pfid"
}
;
platformType
:
PlatformType
;
uniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
;
}
;
type
:
PlayerJoin
;
}
|
{
data
:
{
playerUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
}
;
type
:
PlayerLeave
;
}
|
{
data
:
{
cause
:
EntityDamageCause
;
damagingEntity
?:
|
{
isPlayer
:
true
;
localizationKey
:
string
;
name
:
string
;
nameTag
:
string
;
typeId
:
string
;
}
|
{
isPlayer
:
false
;
localizationKey
:
string
;
nameTag
?:
string
;
typeId
:
string
;
}
;
playerUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
;
type
:
PlayerDie
;
}
|
{
data
:
{
formatting
?:
{
messagePrefix
?:
string
;
messageSuffix
?:
string
;
namePrefix
?:
string
;
nameSuffix
?:
string
;
}
;
message
:
string
;
senderName
:
string
;
senderUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
source
?:
string
;
}
;
type
:
ChatSend
;
}
|
{
data
:
{
message
:
v.CustomSchema
<
DiscordMessageJSON
,
undefined
>
;
source
:
string
;
}
;
type
:
DiscordSend
;
}
,
)
:
void
Parameters
packet
:
|
{
data
:
{
player
:
{
name
:
string
;
nameTag
:
string
;
pfid
:
string
&
{
__brand
:
"Pfid"
}
;
platformType
:
PlatformType
;
uniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
;
}
;
type
:
PlayerJoin
;
}
|
{
data
:
{
playerUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
}
;
type
:
PlayerLeave
;
}
|
{
data
:
{
cause
:
EntityDamageCause
;
damagingEntity
?:
|
{
isPlayer
:
true
;
localizationKey
:
string
;
name
:
string
;
nameTag
:
string
;
typeId
:
string
;
}
|
{
isPlayer
:
false
;
localizationKey
:
string
;
nameTag
?:
string
;
typeId
:
string
;
}
;
playerUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
;
type
:
PlayerDie
;
}
|
{
data
:
{
formatting
?:
{
messagePrefix
?:
string
;
messageSuffix
?:
string
;
namePrefix
?:
string
;
nameSuffix
?:
string
;
}
;
message
:
string
;
senderName
:
string
;
senderUniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
source
?:
string
;
}
;
type
:
ChatSend
;
}
|
{
data
:
{
message
:
v.CustomSchema
<
DiscordMessageJSON
,
undefined
>
;
source
:
string
;
}
;
type
:
DiscordSend
;
}
Returns
void
on
on
(
event
:
"connect"
,
listener
:
Listener
<
{
sessionId
:
string
}
>
)
:
void
Parameters
event
:
"connect"
listener
:
Listener
<
{
sessionId
:
string
}
>
Returns
void
on
(
event
:
"disconnect"
,
listener
:
Listener
<
{
reason
:
DisconnectReason
}
>
)
:
void
Parameters
event
:
"disconnect"
listener
:
Listener
<
{
reason
:
DisconnectReason
}
>
Returns
void
request
request
(
packet
:
|
Omit
<
{
data
:
{
protocolVersion
:
number
;
worldName
:
string
}
;
requestId
:
string
;
type
:
Connect
;
}
,
"requestId"
,
>
|
Omit
<
{
data
:
{
reason
:
DisconnectReason
}
;
requestId
:
string
;
type
:
Disconnect
;
}
,
"requestId"
,
>
|
Omit
<
{
data
:
{
players
:
{
name
:
string
;
nameTag
:
string
;
pfid
:
string
&
{
__brand
:
"Pfid"
}
;
platformType
:
PlatformType
;
uniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
[]
;
}
;
requestId
:
string
;
type
:
WorldInitialize
;
}
,
"requestId"
,
>
,
)
:
Promise
<
RequestResult
<
unknown
>
>
Parameters
packet
:
|
Omit
<
{
data
:
{
protocolVersion
:
number
;
worldName
:
string
}
;
requestId
:
string
;
type
:
Connect
;
}
,
"requestId"
,
>
|
Omit
<
{
data
:
{
reason
:
DisconnectReason
}
;
requestId
:
string
;
type
:
Disconnect
;
}
,
"requestId"
,
>
|
Omit
<
{
data
:
{
players
:
{
name
:
string
;
nameTag
:
string
;
pfid
:
string
&
{
__brand
:
"Pfid"
}
;
platformType
:
PlatformType
;
uniqueId
:
string
&
{
__brand
:
"UniqueId"
}
;
}
[]
;
}
;
requestId
:
string
;
type
:
WorldInitialize
;
}
,
"requestId"
,
>
Returns
Promise
<
RequestResult
<
unknown
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
is
Connected
Methods
disconnect
notify
on
request
discord-mcbe
Loading...