discord-mcbe
Preparing search index...
@discord-mcbe/shared
RequestPackets
Variable RequestPackets
Const
RequestPackets
:
readonly
[
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
protocolVersion
:
NumberSchema
<
undefined
>
;
worldName
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Connect
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
sessionId
:
StringSchema
<
undefined
>
}
,
undefined
>
;
type
:
Connect
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
reason
:
PicklistSchema
<
[
Disconnect
,
OutdatedServer
,
OutdatedClient
,
ConnectionLost
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Disconnect
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
Disconnect
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
players
:
ArraySchema
<
StrictObjectSchema
<
{
name
:
StringSchema
<
undefined
>
;
nameTag
:
StringSchema
<
undefined
>
;
pfid
:
CustomSchema
<
Pfid
,
undefined
>
;
platformType
:
EnumSchema
<
typeof
PlatformType
,
undefined
>
;
uniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
WorldInitialize
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
settings
:
StrictObjectSchema
<
{
allowAddonMessages
:
BooleanSchema
<
undefined
>
}
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
WorldInitialize
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
reason
:
PicklistSchema
<
[
Disconnect
,
OutdatedServer
,
OutdatedClient
,
ConnectionLost
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Disconnect
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
Disconnect
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
sentAt
:
NumberSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Ping
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
receivedAt
:
NumberSchema
<
undefined
>
}
,
undefined
,
>
;
type
:
Ping
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
message
:
UnionSchema
<
[
StringSchema
<
undefined
>
,
GenericSchema
<
RawMessage
>
,
ArraySchema
<
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
,
undefined
>
,
]
,
undefined
,
>
;
playerUniqueId
:
OptionalSchema
<
CustomSchema
<
UniqueId
,
undefined
>
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SendMessage
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
SendMessage
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
message
:
StrictObjectSchema
<
{
attachments
:
ArraySchema
<
StrictObjectSchema
<
{
contentType
:
...
;
name
:
...
}
,
undefined
>
,
undefined
,
>
;
author
:
StrictObjectSchema
<
{
bot
:
BooleanSchema
<
(...)
>
;
displayName
:
StringSchema
<
(...)
>
;
id
:
StringSchema
<
(...)
>
;
username
:
StringSchema
<
(...)
>
;
}
,
undefined
,
>
;
channelId
:
StringSchema
<
undefined
>
;
content
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
member
:
NullableSchema
<
StrictObjectSchema
<
{
displayName
:
...
;
roles
:
...
}
,
undefined
>
,
undefined
,
>
;
mentions
:
StrictObjectSchema
<
{
everyone
:
BooleanSchema
<
(...)
>
;
roles
:
ArraySchema
<
(...)
,
(...)
>
;
users
:
ArraySchema
<
(...)
,
(...)
>
;
}
,
undefined
,
>
;
referencedMessage
:
NullableSchema
<
StrictObjectSchema
<
{
author
:
...
;
content
:
...
;
id
:
...
;
member
:
...
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
text
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
DiscordChat
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
DiscordChat
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
command
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
RunCommand
,
undefined
>
;
}
,
undefined
,
>
;
res
:
VariantSchema
<
"error"
,
[
StrictObjectSchema
<
{
error
:
LiteralSchema
<
true
,
undefined
>
;
message
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
error
:
LiteralSchema
<
false
,
undefined
>
;
successCount
:
NumberSchema
<
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
;
type
:
RunCommand
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
id
:
StringSchema
<
undefined
>
;
message
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SendScriptEvent
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
SendScriptEvent
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
NullSchema
<
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetTPS
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
tps
:
NumberSchema
<
undefined
>
}
,
undefined
>
;
type
:
GetTPS
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
entityUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetEntityLocation
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
location
:
StrictObjectSchema
<
{
x
:
NumberSchema
<
undefined
>
;
y
:
NumberSchema
<
undefined
>
;
z
:
NumberSchema
<
undefined
>
;
}
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
GetEntityLocation
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
entityUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetEntityDimension
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
dimension
:
StrictObjectSchema
<
{
heightRange
:
StrictObjectSchema
<
{
max
:
NumberSchema
<
undefined
>
;
min
:
NumberSchema
<
undefined
>
}
,
undefined
,
>
;
id
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
GetEntityDimension
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetGameMode
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
gameMode
:
EnumSchema
<
typeof
GameMode
,
undefined
>
}
,
undefined
,
>
;
type
:
GetGameMode
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
gameMode
:
EnumSchema
<
typeof
GameMode
,
undefined
>
;
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetGameMode
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
SetGameMode
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
options
:
OptionalSchema
<
StrictObjectSchema
<
{
fadeInDuration
:
NumberSchema
<
undefined
>
;
fadeOutDuration
:
NumberSchema
<
undefined
>
;
stayDuration
:
NumberSchema
<
undefined
>
;
subtitle
:
OptionalSchema
<
UnionSchema
<
(...)
,
(...)
>
,
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
title
:
UnionSchema
<
[
StringSchema
<
undefined
>
,
GenericSchema
<
RawMessage
>
,
ArraySchema
<
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
,
undefined
>
,
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetTitle
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
SetTitle
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
subtitle
:
UnionSchema
<
[
StringSchema
<
undefined
>
,
GenericSchema
<
RawMessage
>
,
ArraySchema
<
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
,
undefined
>
,
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateSubtitle
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
UpdateSubtitle
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
text
:
UnionSchema
<
[
StringSchema
<
undefined
>
,
GenericSchema
<
RawMessage
>
,
ArraySchema
<
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
,
undefined
>
,
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetActionBar
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
SetActionBar
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
reason
:
OptionalSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
KickPlayer
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
KickPlayer
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
StrictObjectSchema
<
{
uniqueId
:
CustomSchema
<
(...)
,
(...)
>
}
,
undefined
,
>
,
StrictObjectSchema
<
{
fakePlayer
:
StringSchema
<
(...)
>
}
,
undefined
>
,
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetScore
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
value
:
NullableSchema
<
NumberSchema
<
undefined
>
,
undefined
>
}
,
undefined
,
>
;
type
:
GetScore
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
StrictObjectSchema
<
{
uniqueId
:
CustomSchema
<
(...)
,
(...)
>
}
,
undefined
,
>
,
StrictObjectSchema
<
{
fakePlayer
:
StringSchema
<
(...)
>
}
,
undefined
>
,
]
,
undefined
,
>
;
score
:
NumberSchema
<
undefined
>
;
type
:
PicklistSchema
<
[
"set"
,
"add"
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateScore
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
value
:
NumberSchema
<
undefined
>
}
,
undefined
>
;
type
:
UpdateScore
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetAllScores
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
scores
:
ArraySchema
<
StrictObjectSchema
<
{
participant
:
StrictObjectSchema
<
{
displayName
:
StringSchema
<
undefined
>
;
entityUniqueId
:
OptionalSchema
<
CustomSchema
<
(...)
,
(...)
>
,
undefined
,
>
;
id
:
NumberSchema
<
undefined
>
;
type
:
EnumSchema
<
typeof
ScoreboardIdentityType
,
undefined
>
;
}
,
undefined
,
>
;
score
:
NumberSchema
<
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
GetAllScores
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
StrictObjectSchema
<
{
uniqueId
:
CustomSchema
<
(...)
,
(...)
>
}
,
undefined
,
>
,
StrictObjectSchema
<
{
fakePlayer
:
StringSchema
<
(...)
>
}
,
undefined
>
,
]
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
RemoveParticipant
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
result
:
BooleanSchema
<
undefined
>
}
,
undefined
>
;
type
:
RemoveParticipant
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetObjective
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
objective
:
OptionalSchema
<
StrictObjectSchema
<
{
displayName
:
OptionalSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
id
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
GetObjective
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
NullSchema
<
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetAllObjectives
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
objectives
:
ArraySchema
<
StrictObjectSchema
<
{
displayName
:
OptionalSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
id
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
GetAllObjectives
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
displayName
:
OptionalSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
objectiveId
:
StringSchema
<
undefined
>
;
type
:
PicklistSchema
<
[
"add"
,
"remove"
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateObjective
,
undefined
>
;
}
,
undefined
,
>
;
res
:
StrictObjectSchema
<
{
objective
:
OptionalSchema
<
StrictObjectSchema
<
{
displayName
:
OptionalSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
id
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
type
:
UpdateObjective
;
}
,
{
req
:
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
displaySlotId
:
EnumSchema
<
typeof
DisplaySlotId
,
undefined
>
;
objectiveId
:
OptionalSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
sortOrder
:
OptionalSchema
<
EnumSchema
<
typeof
ObjectiveSortOrder
,
undefined
>
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetObjectiveDisplay
,
undefined
>
;
}
,
undefined
,
>
;
res
:
NullSchema
<
undefined
>
;
type
:
SetObjectiveDisplay
;
}
,
]
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
discord-mcbe
Loading...