From bd8f7c8a6f1c1e948441614451260bfcb5a04ee9 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Sat, 3 May 2025 08:52:21 -0400 Subject: [PATCH] change all object types to interface --- src/db/common.ts | 4 ++-- src/mod.d.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/db/common.ts b/src/db/common.ts index 056f884..4367bac 100644 --- a/src/db/common.ts +++ b/src/db/common.ts @@ -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 = []; diff --git a/src/mod.d.ts b/src/mod.d.ts index e8ce2f2..97e2866 100644 --- a/src/mod.d.ts +++ b/src/mod.d.ts @@ -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; -}; +}