(commandName: string, subcommandName?: string)
| 73 | } |
| 74 | |
| 75 | export 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 | |
| 85 | export function scheduleMention(schedule: DbSchedule) { |
| 86 | let humanReadableSchedule = cronstrue.toString(schedule.cron); |
no outgoing calls
no test coverage detected