16 lines
320 B
TypeScript
16 lines
320 B
TypeScript
|
|
import type { ModrinthServer } from "../modrinth-servers.ts";
|
||
|
|
|
||
|
|
export abstract class ServerModule {
|
||
|
|
protected server: ModrinthServer;
|
||
|
|
|
||
|
|
constructor(server: ModrinthServer) {
|
||
|
|
this.server = server;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected get serverId(): string {
|
||
|
|
return this.server.serverId;
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract fetch(): Promise<void>;
|
||
|
|
}
|