From c2447b180e8b4846b9957c46f1da9fb0c9f68681 Mon Sep 17 00:00:00 2001 From: ashley zomo Date: Tue, 15 Feb 2022 15:24:45 -0600 Subject: [PATCH] fixed type definition errors --- dist/lang.js | 1 - src/api.ts | 1 - src/queue.ts | 1 - src/types/api.d.ts | 2 +- src/types/queue.d.ts | 6 ++---- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/dist/lang.js b/dist/lang.js index 6dca50a..ab6104f 100644 --- a/dist/lang.js +++ b/dist/lang.js @@ -144,4 +144,3 @@ function getEmbed(id, args = {}, otherOptions = {}) { return embedData; } exports.getEmbed = getEmbed; -debugger; diff --git a/src/api.ts b/src/api.ts index 7b9c96a..f7b3881 100644 --- a/src/api.ts +++ b/src/api.ts @@ -5,7 +5,6 @@ import { IncomingMessage } from 'http'; import http from 'https'; import { emsg } from './util/main'; import * as Lang from './lang'; -import { uniteApiData } from './types/api'; const uniteApiRegex = { //$1 = name, $2 = id diff --git a/src/queue.ts b/src/queue.ts index 98de286..3c9ea75 100644 --- a/src/queue.ts +++ b/src/queue.ts @@ -6,7 +6,6 @@ join message should contain your current position in the queue, editing it to ke import { Client, CommandInteraction, TextChannel } from 'discord.js'; import * as fs from 'fs'; import * as Lang from './lang'; -import { queueInfo, queueInfoBase } from './types/queue'; import { getChannel, getMember, memberIsModThrow } from './util/discord'; import { emsg } from './util/main'; diff --git a/src/types/api.d.ts b/src/types/api.d.ts index 1fbdf3a..ad6e5df 100644 --- a/src/types/api.d.ts +++ b/src/types/api.d.ts @@ -1,4 +1,4 @@ -export interface uniteApiData { +interface uniteApiData { name: string, id: string, avatar: string, diff --git a/src/types/queue.d.ts b/src/types/queue.d.ts index f3c63e0..f17b591 100644 --- a/src/types/queue.d.ts +++ b/src/types/queue.d.ts @@ -1,8 +1,6 @@ -import { GuildMember } from 'discord.js'; - -export interface queueInfoBase { +interface queueInfoBase { teamsize: number } -export interface queueInfo extends queueInfoBase { +interface queueInfo extends queueInfoBase { players: GuildMember[] } \ No newline at end of file