diff --git a/src/bot/commands/chat.ts b/src/bot/commands/chat.ts index f84e442..a2ab943 100644 --- a/src/bot/commands/chat.ts +++ b/src/bot/commands/chat.ts @@ -156,8 +156,9 @@ async function buildInfo( } let loadingIndicatorId: string | boolean | number | object = await getSettingsValue(user, "general:loadingIndicator"); if (!loadingIndicatorId) { - loadingIndicatorId = (await getDefaultValues("general:loadingIndicator")) as string; + loadingIndicatorId = (await getDefaultValues("general:loadingIndicator")) as number; } + console.log(loadingIndicatorId); const loadingIndicator = LOADING_INDICATORS[loadingIndicatorId as number]; let lastUpdate = Date.now(); @@ -172,9 +173,8 @@ async function buildInfo( // if last update was more than 1 second ago lastUpdate = Date.now(); await edit({ - content: `${data.result}<${loadingIndicator.emoji.animated ? "a" : ""}:${loadingIndicator.emoji.name}:${ - loadingIndicator.emoji.id - }>`, + content: `${data.result}<${loadingIndicator.emoji.animated ? "a" : ""}:${loadingIndicator.emoji.name}:${loadingIndicator.emoji.id + }>`, }); } } else {