From 190cb9cd02169d7212b904cea2c7664e2dcc5b14 Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 14 Sep 2021 16:13:31 +0800 Subject: [PATCH] client --- src/CODMClient/codmclient.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/CODMClient/codmclient.ts b/src/CODMClient/codmclient.ts index 0233c91..db34729 100644 --- a/src/CODMClient/codmclient.ts +++ b/src/CODMClient/codmclient.ts @@ -1,14 +1,12 @@ import axios from "axios"; import config from "../utils/config.json"; -import { CODMClientOptions } from "./codmclient.interface"; /** * @name APIClient * @kind constructor * @param {String} key Authorization Key for API (Only for CODM commands) */ export class CODMClient { - public key: CODMClientOptions; - constructor(key: CODMClientOptions) { + constructor(public key: string) { if (key && typeof key !== "string") throw new TypeError("API key must be a string"); }