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

Function updatePluginVersion

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

Source from the content-addressed store, hash-verified

836 }
837
838 async function updatePluginVersion() {
839 const resp = await session.apiClient.updateScriptPlugin(guildId, script.id);
840 if (isErrorResponse(resp)) {
841 notifications.push({ class: "error", message: "failed updating plugin: " + resp.response?.description });
842 } else {
843 reload();
844 notifications.push({ class: "success", message: "updated plugin" });
845 }
846 }
847
848 return <Box sx={{
849 display: "flex",

Callers

nothing calls this directly

Calls 2

isErrorResponseFunction · 0.85
updateScriptPluginMethod · 0.80

Tested by

no test coverage detected