mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 09:05:41 +01:00
state: add typing for response file
This commit is contained in:
parent
c0ab384086
commit
3f282a9c19
@ -12,3 +12,10 @@ export interface ICompatList {
|
|||||||
description: string
|
description: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IResponses {
|
||||||
|
pmReply: string,
|
||||||
|
quotes: {
|
||||||
|
[key: string]: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import UserWarning from './models/UserWarning';
|
import UserWarning from './models/UserWarning';
|
||||||
import UserBan from './models/UserBan';
|
import UserBan from './models/UserBan';
|
||||||
import { IGameDBEntry } from './models/interfaces';
|
import { IGameDBEntry, IResponses } from './models/interfaces';
|
||||||
import discord = require('discord.js');
|
import discord = require('discord.js');
|
||||||
|
|
||||||
/* Application State */
|
/* Application State */
|
||||||
@ -8,7 +8,7 @@ class State {
|
|||||||
logChannel: discord.TextChannel | discord.DMChannel;
|
logChannel: discord.TextChannel | discord.DMChannel;
|
||||||
msglogChannel: discord.TextChannel | discord.DMChannel;
|
msglogChannel: discord.TextChannel | discord.DMChannel;
|
||||||
warnings: UserWarning[];
|
warnings: UserWarning[];
|
||||||
responses: any;
|
responses: IResponses;
|
||||||
bans: UserBan[];
|
bans: UserBan[];
|
||||||
stats: { joins: number; ruleAccepts: number; leaves: number; warnings: number; };
|
stats: { joins: number; ruleAccepts: number; leaves: number; warnings: number; };
|
||||||
lastGameDBUpdate: number;
|
lastGameDBUpdate: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user