From e32afa05bdd75e836c9778294cf13c986c815241 Mon Sep 17 00:00:00 2001 From: Evorp <3vorpgaming@gmail.com> Date: Tue, 21 Nov 2023 10:57:25 -0800 Subject: [PATCH] replace apiPassword with apiToken (still unused) --- json/tokens.example.json | 2 +- src/index.ts | 2 +- src/interfaces/tokens.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/json/tokens.example.json b/json/tokens.example.json index fbb317610..0b874adb8 100644 --- a/json/tokens.example.json +++ b/json/tokens.example.json @@ -2,7 +2,7 @@ "prefix": "/", "token": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9", "apiUrl": "https://api.faithfulpack.net/v2/", - "apiPassword": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9", + "apiToken": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9", "gitToken": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9", "errorChannel": "12345678987654321", "developers": ["12345678987654321", "12345678987654321"], diff --git a/src/index.ts b/src/index.ts index edc98cd48..2bf42bb7c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import tokens from "@json/tokens.json"; export default function StartClient(firstStart = true, interaction?: ChatInputCommandInteraction) { new Client( { - tokens: tokens, + tokens, // remove this line to die instantly ~JackDotJS 2021 allowedMentions: { parse: ["users", "roles"], repliedUser: false }, partials: [ diff --git a/src/interfaces/tokens.ts b/src/interfaces/tokens.ts index 53b365c80..1d7e37409 100644 --- a/src/interfaces/tokens.ts +++ b/src/interfaces/tokens.ts @@ -2,7 +2,7 @@ export interface Tokens { prefix: string; // for shorthand prefix commands token: string; apiUrl: string; - apiPassword?: string; // for api authentication + apiToken?: string; // for api authentication errorChannel: string; // error channel where errors are sent developers: string[]; // people authorized to use dev-only commands and features gitToken: string; // for feedback system