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

Function validateScript

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

Source from the content-addressed store, hash-verified

241
242 useEffect(() => {
243 async function validateScript() {
244 setApiErrorResponse(null)
245
246 const response = await session.apiClient.validateScript(currentGuildId, script.id, {
247 settings_values: newValues
248 })
249
250 if (isErrorResponse(response)) {
251 setApiErrorResponse(response)
252 }
253 }
254
255 if (!isValidating) {
256 setIsValidating(true)

Callers 1

ScriptSettingsFunction · 0.85

Calls 2

isErrorResponseFunction · 0.85
validateScriptMethod · 0.80

Tested by

no test coverage detected