discord-mcbe
Preparing search index...
@discord-mcbe/server
ISession
Interface ISession
interface
ISession
{
averagePing
:
number
;
id
:
string
;
requestInfo
:
ConnectionInfo
;
worldName
:
string
;
destroy
()
:
void
;
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
;
send
<
T
extends
|
Disconnect
|
Ping
|
SendMessage
|
RunCommand
|
SendScriptEvent
|
GetTPS
|
GetEntityLocation
|
GetEntityDimension
|
GetGameMode
|
SetGameMode
|
SetTitle
|
UpdateSubtitle
|
SetActionBar
|
KickPlayer
|
DiscordChat
|
GetScore
|
UpdateScore
|
GetAllScores
|
RemoveParticipant
|
GetObjective
|
GetAllObjectives
|
UpdateObjective
|
SetObjectiveDisplay
,
>
(
type
:
T
,
data
:
ClientBoundRequestData
<
T
>
,
timeout
?:
number
,
)
:
Promise
<
RequestResult
<
ClientBoundResponseData
<
T
>
>
>
;
}
Implemented by
ServerNetSession
SocketSession
Index
Properties
average
Ping
id
request
Info
world
Name
Methods
destroy
disconnect
send
Properties
Readonly
average
Ping
averagePing
:
number
Readonly
id
id
:
string
Readonly
request
Info
requestInfo
:
ConnectionInfo
Readonly
world
Name
worldName
:
string
Methods
destroy
destroy
()
:
void
Returns
void
disconnect
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
Parameters
Optional
reason
:
DisconnectReason
Returns
Promise
<
void
>
send
send
<
T
extends
|
Disconnect
|
Ping
|
SendMessage
|
RunCommand
|
SendScriptEvent
|
GetTPS
|
GetEntityLocation
|
GetEntityDimension
|
GetGameMode
|
SetGameMode
|
SetTitle
|
UpdateSubtitle
|
SetActionBar
|
KickPlayer
|
DiscordChat
|
GetScore
|
UpdateScore
|
GetAllScores
|
RemoveParticipant
|
GetObjective
|
GetAllObjectives
|
UpdateObjective
|
SetObjectiveDisplay
,
>
(
type
:
T
,
data
:
ClientBoundRequestData
<
T
>
,
timeout
?:
number
,
)
:
Promise
<
RequestResult
<
ClientBoundResponseData
<
T
>
>
>
Type Parameters
T
extends
|
Disconnect
|
Ping
|
SendMessage
|
RunCommand
|
SendScriptEvent
|
GetTPS
|
GetEntityLocation
|
GetEntityDimension
|
GetGameMode
|
SetGameMode
|
SetTitle
|
UpdateSubtitle
|
SetActionBar
|
KickPlayer
|
DiscordChat
|
GetScore
|
UpdateScore
|
GetAllScores
|
RemoveParticipant
|
GetObjective
|
GetAllObjectives
|
UpdateObjective
|
SetObjectiveDisplay
Parameters
type
:
T
data
:
ClientBoundRequestData
<
T
>
Optional
timeout
:
number
Returns
Promise
<
RequestResult
<
ClientBoundResponseData
<
T
>
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
average
Ping
id
request
Info
world
Name
Methods
destroy
disconnect
send
discord-mcbe
Loading...