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

Function deleteMessageQuiet

tmp_admin/tmp_admin.ts:131–144  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

129 return;
130 }
131 if (typeof target.delete === "function") {
132 await target.delete({ revoke: true });
133 }
134 } catch (error) {
135 console.error("[tmp_admin] 删除 sudo 命令副本失败:", error);
136 }
137}
138
139async function respondToCommand(
140 msg: Api.Message,
141 trigger: Api.Message | undefined,
142 options: CommandResponse,
143 ignoreNotModified?: boolean
144): Promise<void> {
145 if (!trigger) {
146 if (ignoreNotModified) {
147 await editMessageIgnoringNotModified(msg, options);

Callers 1

respondToCommandFunction · 0.85

Calls 3

safeDeleteMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected