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;
|
return embedData;
|
||||||
}
|
}
|
||||||
exports.getEmbed = getEmbed;
|
exports.getEmbed = getEmbed;
|
||||||
debugger;
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
2
src/types/api.d.ts
vendored
@@ -1,4 +1,4 @@
|
|||||||
export interface uniteApiData {
|
interface uniteApiData {
|
||||||
name: string,
|
name: string,
|
||||||
id: string,
|
id: string,
|
||||||
avatar: 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';
|
interface queueInfoBase {
|
||||||
|
|
||||||
export interface queueInfoBase {
|
|
||||||
teamsize: number
|
teamsize: number
|
||||||
}
|
}
|
||||||
export interface queueInfo extends queueInfoBase {
|
interface queueInfo extends queueInfoBase {
|
||||||
players: GuildMember[]
|
players: GuildMember[]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user