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