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

Method createScript

frontend-common/src/api_client.ts:145–150  ·  view source on GitHub ↗
(guildId: string, data: CreateScript)

Source from the content-addressed store, hash-verified

143 }
144
145 async createScript(guildId: string, data: CreateScript): Promise<ApiResult<Script>> {
146 return await this.put(`/api/guilds/${guildId}/scripts`, {
147 kind: "json",
148 body: data
149 });
150 }
151
152 async updateScript(guildId: string, id: number, data: UpdateScript): Promise<ApiResult<Script>> {
153 return await this.patch(`/api/guilds/${guildId}/scripts/${id}`, {

Callers 2

createScriptFunction · 0.80
pushSingleChangeMethod · 0.80

Calls 1

putMethod · 0.95

Tested by

no test coverage detected