MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / commandMention

Function commandMention

src/utils/string.utils.ts:75–83  ·  view source on GitHub ↗
(commandName: string, subcommandName?: string)

Source from the content-addressed store, hash-verified

73}
74
75export function commandMention(commandName: string, subcommandName?: string) {
76 const liveCommand = ClientUtils.getLiveCommand(commandName);
77 if (subcommandName) {
78 return chatInputApplicationCommandMention(commandName, subcommandName, liveCommand.id);
79 }
80 else {
81 return chatInputApplicationCommandMention(commandName, liveCommand.id);
82 }
83}
84
85export function scheduleMention(schedule: DbSchedule) {
86 let humanReadableSchedule = cronstrue.toString(schedule.cron);

Callers 14

buildDescriptionFunction · 0.90
QueueNotFoundErrorClass · 0.90
VoiceNotFoundErrorClass · 0.90
AdminNotFoundErrorClass · 0.90
AdminAccessErrorClass · 0.90
voice_add_sourceMethod · 0.90
help_setupMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected