change all object types to interface
This commit is contained in:
parent
69f95bf701
commit
bd8f7c8a6f
|
@ -1,8 +1,8 @@
|
|||
import dbClient from 'db/client.ts';
|
||||
|
||||
type UserIdObj = {
|
||||
interface UserIdObj {
|
||||
userid: bigint;
|
||||
};
|
||||
}
|
||||
|
||||
// List of userIds who have requested that the bot ignore them
|
||||
export const ignoreList: Array<bigint> = [];
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// EmojiConf is used as a structure for the emojis stored in config.ts
|
||||
export type EmojiConf = {
|
||||
export interface EmojiConf {
|
||||
name: string;
|
||||
aliases: string[];
|
||||
id: string;
|
||||
animated: boolean;
|
||||
deleteSender: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
// PastCommandCount is used in calculating the hourly rate of commands
|
||||
export type PastCommandCount = {
|
||||
export interface PastCommandCount {
|
||||
command: string;
|
||||
count: number;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue