discord-mcbe
Preparing search index...
@discord-mcbe/shared
safeParseClientBoundPacket
Function safeParseClientBoundPacket
safeParseClientBoundPacket
(
input
:
unknown
,
)
:
SafeParseResult
<
VariantSchema
<
"type"
,
[
VariantSchema
<
"type"
,
readonly
[
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
reason
:
PicklistSchema
<
[
(...)
,
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Disconnect
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
sentAt
:
NumberSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Ping
,
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
,
VariantSchema
<
"type"
,
readonly
[
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
message
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
playerUniqueId
:
OptionalSchema
<
CustomSchema
<
(...)
,
(...)
>
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SendMessage
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
message
:
StrictObjectSchema
<
{
attachments
:
...
;
author
:
...
;
channelId
:
...
;
content
:
...
;
id
:
...
;
member
:
...
;
mentions
:
...
;
referencedMessage
:
...
;
}
,
undefined
,
>
;
text
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
DiscordChat
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
command
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
RunCommand
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
id
:
StringSchema
<
undefined
>
;
message
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SendScriptEvent
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
NullSchema
<
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetTPS
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
entityUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetEntityLocation
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
entityUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetEntityDimension
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetGameMode
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
gameMode
:
EnumSchema
<
typeof
GameMode
,
undefined
>
;
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetGameMode
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
options
:
OptionalSchema
<
StrictObjectSchema
<
(...)
,
(...)
>
,
undefined
,
>
;
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
title
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetTitle
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
subtitle
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateSubtitle
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
text
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetActionBar
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
reason
:
OptionalSchema
<
StringSchema
<
(...)
>
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
KickPlayer
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetScore
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
score
:
NumberSchema
<
undefined
>
;
type
:
PicklistSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateScore
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetAllScores
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
RemoveParticipant
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetObjective
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
NullSchema
<
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetAllObjectives
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
displayName
:
OptionalSchema
<
StringSchema
<
(...)
>
,
undefined
>
;
objectiveId
:
StringSchema
<
undefined
>
;
type
:
PicklistSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateObjective
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
displaySlotId
:
EnumSchema
<
typeof
DisplaySlotId
,
undefined
>
;
objectiveId
:
OptionalSchema
<
StringSchema
<
(...)
>
,
undefined
>
;
sortOrder
:
OptionalSchema
<
EnumSchema
<
(...)
,
(...)
>
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetObjectiveDisplay
,
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
,
VariantSchema
<
"ok"
,
[
StrictObjectSchema
<
{
data
:
UnknownSchema
;
ok
:
LiteralSchema
<
true
,
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
"__internal__:response"
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
error
:
VariantSchema
<
"code"
,
[
StrictObjectSchema
<
{
code
:
...
;
message
:
...
}
,
undefined
>
,
StrictObjectSchema
<
{
code
:
...
;
issues
:
...
;
message
:
...
}
,
undefined
,
>
,
]
,
undefined
,
>
;
ok
:
LiteralSchema
<
false
,
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
"__internal__:response"
,
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
,
]
,
undefined
,
>
,
>
Parameters
input
:
unknown
Returns
SafeParseResult
<
VariantSchema
<
"type"
,
[
VariantSchema
<
"type"
,
readonly
[
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
reason
:
PicklistSchema
<
[
(...)
,
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Disconnect
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
sentAt
:
NumberSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
Ping
,
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
,
VariantSchema
<
"type"
,
readonly
[
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
message
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
playerUniqueId
:
OptionalSchema
<
CustomSchema
<
(...)
,
(...)
>
,
undefined
,
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SendMessage
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
message
:
StrictObjectSchema
<
{
attachments
:
...
;
author
:
...
;
channelId
:
...
;
content
:
...
;
id
:
...
;
member
:
...
;
mentions
:
...
;
referencedMessage
:
...
;
}
,
undefined
,
>
;
text
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
DiscordChat
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
command
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
RunCommand
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
id
:
StringSchema
<
undefined
>
;
message
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SendScriptEvent
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
NullSchema
<
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetTPS
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
entityUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetEntityLocation
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
entityUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetEntityDimension
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetGameMode
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
gameMode
:
EnumSchema
<
typeof
GameMode
,
undefined
>
;
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetGameMode
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
options
:
OptionalSchema
<
StrictObjectSchema
<
(...)
,
(...)
>
,
undefined
,
>
;
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
title
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetTitle
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
subtitle
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateSubtitle
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
text
:
UnionSchema
<
[
(...)
,
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetActionBar
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
playerUniqueId
:
CustomSchema
<
UniqueId
,
undefined
>
;
reason
:
OptionalSchema
<
StringSchema
<
(...)
>
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
KickPlayer
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetScore
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
score
:
NumberSchema
<
undefined
>
;
type
:
PicklistSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateScore
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetAllScores
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
;
participant
:
UnionSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
RemoveParticipant
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
objectiveId
:
StringSchema
<
undefined
>
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetObjective
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
NullSchema
<
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
GetAllObjectives
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
displayName
:
OptionalSchema
<
StringSchema
<
(...)
>
,
undefined
>
;
objectiveId
:
StringSchema
<
undefined
>
;
type
:
PicklistSchema
<
[
(...)
,
(...)
]
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
UpdateObjective
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
data
:
StrictObjectSchema
<
{
displaySlotId
:
EnumSchema
<
typeof
DisplaySlotId
,
undefined
>
;
objectiveId
:
OptionalSchema
<
StringSchema
<
(...)
>
,
undefined
>
;
sortOrder
:
OptionalSchema
<
EnumSchema
<
(...)
,
(...)
>
,
undefined
>
;
}
,
undefined
,
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
SetObjectiveDisplay
,
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
,
VariantSchema
<
"ok"
,
[
StrictObjectSchema
<
{
data
:
UnknownSchema
;
ok
:
LiteralSchema
<
true
,
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
"__internal__:response"
,
undefined
>
;
}
,
undefined
,
>
,
StrictObjectSchema
<
{
error
:
VariantSchema
<
"code"
,
[
StrictObjectSchema
<
{
code
:
...
;
message
:
...
}
,
undefined
>
,
StrictObjectSchema
<
{
code
:
...
;
issues
:
...
;
message
:
...
}
,
undefined
,
>
,
]
,
undefined
,
>
;
ok
:
LiteralSchema
<
false
,
undefined
>
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
"__internal__:response"
,
undefined
>
;
}
,
undefined
,
>
,
]
,
undefined
,
>
,
]
,
undefined
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
discord-mcbe
Loading...