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.1.101/utilities/1_misc.ts";

Type Parameters

T extends readonly string[]

Parameters

message: string
choices: T

Returns

T[number]