Typescript issues
I just recently switched to using typescript and I am having a little trouble when trying to get options from CommandInteractions. interaction.options is a CommandInteractionOptionResolver but when i try to use it it gives me a type error saying that the type is actually an
Am I missing something here or do I just have to do work arounds like explicitly telling the compiler that
Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused" | "getMentionable" | "getRole" | "getAttachment" | ... 6 more ... | "getSubcommand"> which would be fine except the things it is emiting are the options I am trying to get. Eg options.getBoolean() is emitted but it is added as one of the command options.Am I missing something here or do I just have to do work arounds like explicitly telling the compiler that
interaction.options as CommandInteractionOptionResolver so I can actually use my options?