discord-mcbe
Preparing search index...
@discord-mcbe/shared
safeParseAddonDiscordChat
Function safeParseAddonDiscordChat
safeParseAddonDiscordChat
(
input
:
unknown
,
)
:
SafeParseResult
<
ObjectSchema
<
{
message
:
ObjectSchema
<
{
attachments
:
ArraySchema
<
ObjectSchema
<
{
contentType
:
NullableSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
name
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
author
:
ObjectSchema
<
{
bot
:
BooleanSchema
<
undefined
>
;
displayName
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
username
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
channelId
:
StringSchema
<
undefined
>
;
content
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
member
:
NullableSchema
<
ObjectSchema
<
{
displayName
:
StringSchema
<
undefined
>
;
roles
:
ArraySchema
<
ObjectSchema
<
{
id
:
...
;
name
:
...
}
,
undefined
>
,
undefined
,
>
;
}
,
undefined
,
>
,
undefined
,
>
;
mentions
:
ObjectSchema
<
{
everyone
:
BooleanSchema
<
undefined
>
;
roles
:
ArraySchema
<
ObjectSchema
<
{
id
:
StringSchema
<
(...)
>
;
name
:
StringSchema
<
(...)
>
}
,
undefined
,
>
,
undefined
,
>
;
users
:
ArraySchema
<
ObjectSchema
<
{
bot
:
BooleanSchema
<
(...)
>
;
displayName
:
StringSchema
<
(...)
>
;
id
:
StringSchema
<
(...)
>
;
username
:
StringSchema
<
(...)
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
referencedMessage
:
NullableSchema
<
ObjectSchema
<
{
author
:
ObjectSchema
<
{
bot
:
BooleanSchema
<
(...)
>
;
displayName
:
StringSchema
<
(...)
>
;
id
:
StringSchema
<
(...)
>
;
username
:
StringSchema
<
(...)
>
;
}
,
undefined
,
>
;
content
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
member
:
NullableSchema
<
ObjectSchema
<
{
displayName
:
...
;
roles
:
...
}
,
undefined
>
,
undefined
,
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
text
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
>
Parameters
input
:
unknown
Returns
SafeParseResult
<
ObjectSchema
<
{
message
:
ObjectSchema
<
{
attachments
:
ArraySchema
<
ObjectSchema
<
{
contentType
:
NullableSchema
<
StringSchema
<
undefined
>
,
undefined
>
;
name
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
undefined
,
>
;
author
:
ObjectSchema
<
{
bot
:
BooleanSchema
<
undefined
>
;
displayName
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
username
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
;
channelId
:
StringSchema
<
undefined
>
;
content
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
member
:
NullableSchema
<
ObjectSchema
<
{
displayName
:
StringSchema
<
undefined
>
;
roles
:
ArraySchema
<
ObjectSchema
<
{
id
:
...
;
name
:
...
}
,
undefined
>
,
undefined
,
>
;
}
,
undefined
,
>
,
undefined
,
>
;
mentions
:
ObjectSchema
<
{
everyone
:
BooleanSchema
<
undefined
>
;
roles
:
ArraySchema
<
ObjectSchema
<
{
id
:
StringSchema
<
(...)
>
;
name
:
StringSchema
<
(...)
>
}
,
undefined
,
>
,
undefined
,
>
;
users
:
ArraySchema
<
ObjectSchema
<
{
bot
:
BooleanSchema
<
(...)
>
;
displayName
:
StringSchema
<
(...)
>
;
id
:
StringSchema
<
(...)
>
;
username
:
StringSchema
<
(...)
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
referencedMessage
:
NullableSchema
<
ObjectSchema
<
{
author
:
ObjectSchema
<
{
bot
:
BooleanSchema
<
(...)
>
;
displayName
:
StringSchema
<
(...)
>
;
id
:
StringSchema
<
(...)
>
;
username
:
StringSchema
<
(...)
>
;
}
,
undefined
,
>
;
content
:
StringSchema
<
undefined
>
;
id
:
StringSchema
<
undefined
>
;
member
:
NullableSchema
<
ObjectSchema
<
{
displayName
:
...
;
roles
:
...
}
,
undefined
>
,
undefined
,
>
;
}
,
undefined
,
>
,
undefined
,
>
;
}
,
undefined
,
>
;
text
:
StringSchema
<
undefined
>
;
}
,
undefined
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
discord-mcbe
Loading...