()
| 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", |
nothing calls this directly
no test coverage detected