diff --git a/src/handlers/interaction.ts b/src/handlers/interaction.ts index c836780..eeccfbe 100644 --- a/src/handlers/interaction.ts +++ b/src/handlers/interaction.ts @@ -1,7 +1,7 @@ import type { Module, SernAutocompleteData } from '../types/core-modules' import { callPlugins, executeModule } from './event-utils'; import { SernError } from '../core/structures/enums' -import { createSDT, isAutocomplete, isCommand, isContextCommand, isMessageComponent, isModal, resultPayload, treeSearch } from '../core/functions' +import { createSDT, isAutocomplete, isCommand, isContextCommand, isMessageComponent, isModal, resultPayload } from '../core/functions' import type { UnpackedDependencies } from '../types/utility'; import * as Id from '../core/id' import { Context } from '../core/structures/context'; diff --git a/src/handlers/ready.ts b/src/handlers/ready.ts index 4c57f2f..17c5381 100644 --- a/src/handlers/ready.ts +++ b/src/handlers/ready.ts @@ -32,8 +32,7 @@ export default async function(dirs: string | string[], deps : UnpackedDependenci if(module.type === CommandType.Both || module.type === CommandType.Slash) { const options = (Reflect.get(module, 'options') ?? []) as SernOptionsData[]; - const lookupTable = new Map() - createLookupTable(lookupTable, options) + const lookupTable = createLookupTable(options) module.locals['@sern/lookup-table'] = lookupTable; } // FREEZE! no more writing!!