(guildId: string, data: CreateScript)
| 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}`, { |
no test coverage detected