MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / safeDelete

Method safeDelete

clean/clean.ts:512–518  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

510 const waitTime = parseInt(error.message.match(/\d+/)?.[0] || "60");
511 await this.editMessage(msg, `⏳ 需要等待 ${waitTime} 秒后继续`);
512 await sleep((waitTime + 1) * 1000);
513 }
514
515 private async safeDelete(msg: Api.Message): Promise<void> {
516 try {
517 await msg.delete({ revoke: true });
518 } catch (error) {
519 // 忽略删除错误
520 }
521 }

Callers 3

unblockMemberMethod · 0.95
deleteMessageQuietFunction · 0.80
CyPluginClass · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected