From 81d9f0a5bff932ca0c532e3a07f04e984af990b2 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 5 Jan 2022 01:24:34 -0700 Subject: [PATCH] Remove the IServerInfoRequest interface since it wasn't in use --- common/src/types/events/server_info.ts | 9 +++------ docs/events.md | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) 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`