MCPcopy Create free account
hub / github.com/esmBot/esmBot / convFlagType

Function convFlagType

src/utils/handler.ts:163–166  ·  view source on GitHub ↗
(type: ExtendedConstructedCommandOptions["type"])

Source from the content-addressed store, hash-verified

161];
162
163export function convFlagType(type: ExtendedConstructedCommandOptions["type"]): Constants.ApplicationCommandOptionTypes {
164 if (typeof type === "number") return type;
165 return flagMap.indexOf(type);
166}
167
168/**
169 * Convert command flags to params

Callers 4

runMethod · 0.85
parseFlagsFunction · 0.85
extendFlagsFunction · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected