From 2593f92dad9a33dd80592ab6aa2a9473448437b5 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 16 Jan 2023 17:16:58 +0100 Subject: [PATCH] fix types --- src/events/client/ready.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/client/ready.ts b/src/events/client/ready.ts index 1a20b80..220d367 100644 --- a/src/events/client/ready.ts +++ b/src/events/client/ready.ts @@ -24,7 +24,7 @@ export default async (client: Client) => { const info = { locale: element.locale, message: element.data, - createdAt: element.creation_date, + createdAt: Number(element.creation_date), channelId: `${element.channel_id}`, userId: `${element.user_id}`, guildId: `${element.guild_id}`, @@ -32,7 +32,7 @@ export default async (client: Client) => { if (element.expiration_date <= now) { // Reminder expired - deleteReminder(client, element.creation_date, `${element.user_id}`).then((res) => { + deleteReminder(client, Number(element.creation_date), `${element.user_id}`).then((res) => { if (res != true) { throw res; } @@ -44,7 +44,7 @@ export default async (client: Client) => { const timeoutId = setTimeoutReminder(client, info, element.option_id, (element.expiration_date - now) / 1000); // Update timeout in database - element.timeout_id = timeoutId; + element.timeout_id = String(timeoutId); updateReminder(client, element).then((res) => { if (res != true) { throw res;