Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/utilities/1_misc.ts>mustPromptOneOf

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function mustPromptOneOf
import { mustPromptOneOf } from "https://deno.land/x/mtkruto@0.0.995/utilities/1_misc.ts";

Type Parameters

T extends readonly string[]

Parameters

message: string
choices: T

Returns

T[number]