MCPcopy Create free account
hub / github.com/Botloader/botloader / delScript

Function delScript

frontend/src/modules/guilds/GuildScriptsProvider.tsx:49–56  ·  view source on GitHub ↗
(scriptId: number)

Source from the content-addressed store, hash-verified

47 const safeGuildId = guildId
48
49 async function delScript(scriptId: number) {
50 let resp = await session.apiClient.delScript(safeGuildId, scriptId);
51 if (!isErrorResponse(resp)) {
52 fetchedData.reload();
53 }
54
55 await session.apiClient.reloadGuildVm(safeGuildId);
56 }
57
58 async function toggleScript(scriptId: number, enabled: boolean) {
59 let resp = await session.apiClient.updateScript(safeGuildId, scriptId, {

Callers 1

deleteConfirmFunction · 0.85

Calls 3

isErrorResponseFunction · 0.85
delScriptMethod · 0.80
reloadGuildVmMethod · 0.80

Tested by

no test coverage detected