Updated my bot to the latest version of djs

TSError: ⨯ Unable to compile TypeScript:
src/Commands/Developer/emit.ts:56:27 - error TS2339: Property 'getString' does not exist on type 'Omit<CommandInteractionOptionResolver<"cached">, "getMessage" | "getFocused">'.

56 const choices = options.getString('event');
~~~~~

at createTSError (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:859:12)
at reportTSError (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:863:19)
at getOutput (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1077:36)
at Object.compile (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1433:41)
at Module.m._compile (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.require.extensions.<computed> [as .ts] (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19) {
diagnosticCodes: [ 2339 ]
}
this is the line its pointing too

i have tryed typeguarding with inCachedGuild(), inGuild() and neither of them work, could anyone help me out?
const choices = options.getString('event');
Was this page helpful?