diff --git a/common/src/types/events/server_info.ts b/common/src/types/events/server_info.ts index 42feb15..bcc6648 100644 --- a/common/src/types/events/server_info.ts +++ b/common/src/types/events/server_info.ts @@ -1,10 +1,7 @@ -/** - * The data that the server needs in order to perform the `server.info` request. - */ -export interface IServerInfoRequest {} +import { ServerResponse } from "../ServerResponse"; /** The data sent as a response to `server.info`. */ -export interface IServerInfoResponse { +export interface IServerInfoResponse extends ServerResponse { /** The version that the server is currently running. */ - version: string; + version?: string; } \ No newline at end of file diff --git a/docs/events.md b/docs/events.md index 9340b52..70eb191 100644 --- a/docs/events.md +++ b/docs/events.md @@ -21,8 +21,8 @@ Asks the server for information about it. | ------- | -------- | ----------- | Yes | Yes | No -### Payloads: -Request Payload: `IServerInfoRequest` +### Payload Types: +Request Payload: N/A Response Payload: `IServerInfoResponse`