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

Method updateScript

frontend-common/src/api_client.ts:152–157  ·  view source on GitHub ↗
(guildId: string, id: number, data: UpdateScript)

Source from the content-addressed store, hash-verified

150 }
151
152 async updateScript(guildId: string, id: number, data: UpdateScript): Promise<ApiResult<Script>> {
153 return await this.patch(`/api/guilds/${guildId}/scripts/${id}`, {
154 kind: "json",
155 body: data
156 });
157 }
158
159 async validateScript(guildId: string, id: number, data: UpdateScript): Promise<ApiResult<void>> {
160 return await this.post(`/api/guilds/${guildId}/scripts/${id}/validate_settings`, {

Callers 6

toggleScriptFunction · 0.80
saveFunction · 0.80
updateGuildTestingFunction · 0.80
toggleScriptFunction · 0.80
saveFunction · 0.80
pushSingleChangeMethod · 0.80

Calls 1

patchMethod · 0.95

Tested by

no test coverage detected