#[TypeScript] Non required option for slash commands

1 messages · Page 1 of 1 (latest)

bitter kestrel

Hello !

I wanted to know, I rewrite my bot with TypeScript and I have a problem. When I want to get the value of non-required option, my bot crash.

The concerned line (37) : let version = interaction.options.get('version', false).value as string;

Thanks in advance ^^

Mysterious_Dev