(ms: number, label: string)
| 138 | const lifecycle = tryGetCurrentGenerationContext(); |
| 139 | if (lifecycle) { |
| 140 | await lifecycle.delay(ms, { label }); |
| 141 | return; |
| 142 | } |
| 143 | await sleep(ms); |
| 144 | } |
| 145 | |
| 146 | class StickerPlugin extends Plugin { |
| 147 | description: string = help_text; |
| 148 | |
| 149 | cmdHandlers: Record<string, (msg: Api.Message) => Promise<void>> = { |
| 150 | sticker: async (msg: Api.Message) => await this.handleSticker(msg), |
no test coverage detected