fixed type definition errors
This commit is contained in:
1
dist/lang.js
vendored
1
dist/lang.js
vendored
@@ -144,4 +144,3 @@ function getEmbed(id, args = {}, otherOptions = {}) {
|
||||
return embedData;
|
||||
}
|
||||
exports.getEmbed = getEmbed;
|
||||
debugger;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
2
src/types/api.d.ts
vendored
2
src/types/api.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
export interface uniteApiData {
|
||||
interface uniteApiData {
|
||||
name: string,
|
||||
id: string,
|
||||
avatar: string,
|
||||
|
||||
6
src/types/queue.d.ts
vendored
6
src/types/queue.d.ts
vendored
@@ -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[]
|
||||
}
|
||||
Reference in New Issue
Block a user