fixed type definition errors

This commit is contained in:
2022-02-15 15:24:45 -06:00
parent a3103f73c3
commit c2447b180e
5 changed files with 3 additions and 8 deletions

1
dist/lang.js vendored
View File

@@ -144,4 +144,3 @@ function getEmbed(id, args = {}, otherOptions = {}) {
return embedData; return embedData;
} }
exports.getEmbed = getEmbed; exports.getEmbed = getEmbed;
debugger;

View File

@@ -5,7 +5,6 @@ import { IncomingMessage } from 'http';
import http from 'https'; import http from 'https';
import { emsg } from './util/main'; import { emsg } from './util/main';
import * as Lang from './lang'; import * as Lang from './lang';
import { uniteApiData } from './types/api';
const uniteApiRegex = { const uniteApiRegex = {
//$1 = name, $2 = id //$1 = name, $2 = id

View File

@@ -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 { Client, CommandInteraction, TextChannel } from 'discord.js';
import * as fs from 'fs'; import * as fs from 'fs';
import * as Lang from './lang'; import * as Lang from './lang';
import { queueInfo, queueInfoBase } from './types/queue';
import { getChannel, getMember, memberIsModThrow } from './util/discord'; import { getChannel, getMember, memberIsModThrow } from './util/discord';
import { emsg } from './util/main'; import { emsg } from './util/main';

2
src/types/api.d.ts vendored
View File

@@ -1,4 +1,4 @@
export interface uniteApiData { interface uniteApiData {
name: string, name: string,
id: string, id: string,
avatar: string, avatar: string,

View File

@@ -1,8 +1,6 @@
import { GuildMember } from 'discord.js'; interface queueInfoBase {
export interface queueInfoBase {
teamsize: number teamsize: number
} }
export interface queueInfo extends queueInfoBase { interface queueInfo extends queueInfoBase {
players: GuildMember[] players: GuildMember[]
} }