mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-21 22: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
|
||||
}
|
||||
}
|
||||
|
||||
export interface IResponses {
|
||||
pmReply: string,
|
||||
quotes: {
|
||||
[key: string]: string
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import UserWarning from './models/UserWarning';
|
||||
import UserBan from './models/UserBan';
|
||||
import { IGameDBEntry } from './models/interfaces';
|
||||
import { IGameDBEntry, IResponses } from './models/interfaces';
|
||||
import discord = require('discord.js');
|
||||
|
||||
/* Application State */
|
||||
@ -8,7 +8,7 @@ class State {
|
||||
logChannel: discord.TextChannel | discord.DMChannel;
|
||||
msglogChannel: discord.TextChannel | discord.DMChannel;
|
||||
warnings: UserWarning[];
|
||||
responses: any;
|
||||
responses: IResponses;
|
||||
bans: UserBan[];
|
||||
stats: { joins: number; ruleAccepts: number; leaves: number; warnings: number; };
|
||||
lastGameDBUpdate: number;
|
||||
|
Loading…
Reference in New Issue
Block a user