Skip to content

Missing Properties #7

@JordanW9232

Description

@JordanW9232

I noticed that there are some missing properties on some of the interfaces.

Both of these are missing timeout?: number

interface JavaStatusOptions {
	query?: boolean,
	baseURL?: string,
}

interface BedrockStatusOptions {
	baseURL?: string,
}

And with that, it should be passed in the query parameters when making the request:

if (options?.timeout) {
  url += `&timeout=${options.timeout}`;
}

The other missing property I found was ip_address: string | null in StatusResponse

interface StatusResponse {
	online: boolean,
	host: string,
	port: number,
	eula_blocked: boolean,
	retrieved_at: number,
	expires_at: number
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions