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

Function deleteConfirm

frontend/src/components/GuildScriptPage.tsx:832–836  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

830 const { reload, delScript } = useCurrentGuildScripts();
831
832 async function deleteConfirm() {
833 if (window.confirm("are you sure you want to delete this script?")) {
834 await delScript(script.id);
835 }
836 }
837
838 async function updatePluginVersion() {
839 const resp = await session.apiClient.updateScriptPlugin(guildId, script.id);

Callers 1

ScriptDetailsFunction · 0.70

Calls 1

delScriptFunction · 0.85

Tested by

no test coverage detected