Please describe the problem you are having in as much detail as possible:
hello, so, i have command, that needs to access option value, but ts yells that there is no .value for this.
Include a reproducible code sample here, if possible:
import { SlashCommandContext } from '../context'
export default (ctx: SlashCommandContext): Response => {
return ctx.reply({
content: ctx.data.options![0].value,
})
}
Further details:
context is type which is union of APIChatInputApplicationCommandInteraction and two methods, reply and edit
- Runtime:
- Node.js version: not node
- deno version: not deno
- Priority this issue should have:
Please describe the problem you are having in as much detail as possible:
hello, so, i have command, that needs to access option value, but ts yells that there is no .value for this.
Include a reproducible code sample here, if possible:
Further details:
context is type which is union of
APIChatInputApplicationCommandInteractionand two methods, reply and edit