diff --git a/src/handler/events/interactionCreate.ts b/src/handler/events/interactionCreate.ts index dcbb907..29e4a32 100644 --- a/src/handler/events/interactionCreate.ts +++ b/src/handler/events/interactionCreate.ts @@ -26,7 +26,6 @@ import { } from '../utilities/predicates'; import { filterCorrectModule } from './observableHandling'; import { CommandType } from '../structures/enums'; -import type { Result } from 'ts-results'; import type { AutocompleteInteraction } from 'discord.js'; import { asyncResolveArray } from '../utilities/asyncResolveArray'; @@ -211,7 +210,7 @@ export function onInteractionCreate(wrapper: Wrapper) { ) .subscribe({ async next({ mod, res: eventPluginRes, execute }) { - const ePlugArr: Result[] = await asyncResolveArray(eventPluginRes); + const ePlugArr = await asyncResolveArray(eventPluginRes); if (ePlugArr.every(e => e.ok)) { await execute(); wrapper.sernEmitter?.emit('module.activate', { type: 'success', module: mod! }); diff --git a/src/handler/utilities/readFile.ts b/src/handler/utilities/readFile.ts index 7bb63c8..8b45acc 100644 --- a/src/handler/utilities/readFile.ts +++ b/src/handler/utilities/readFile.ts @@ -1,7 +1,7 @@ import { ApplicationCommandType, ComponentType } from 'discord.js'; import { readdirSync, statSync } from 'fs'; import { join } from 'path'; -import { from, Observable, throwError } from 'rxjs'; +import { from, Observable } from 'rxjs'; import type { Module } from '../structures/module'; import { SernError } from '../structures/errors'; import type { Result } from 'ts-results';