MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / getCommandJson

Function getCommandJson

src/utils/messageAdapter.js:12–14  ·  view source on GitHub ↗
(commandData)

Source from the content-addressed store, hash-verified

10export { buildPrefixUsage };
11
12function getCommandJson(commandData) {
13 return commandData?.toJSON ? commandData.toJSON() : commandData;
14}
15
16export function resolveSlashAccessKey(interaction) {
17 const subcommandGroup = interaction.options.getSubcommandGroup(false);

Callers 1

resolvePrefixAccessKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected