Method
validateScript
(guildId: string, id: number, data: UpdateScript)
Source from the content-addressed store, hash-verified
| 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`, { |
| 161 | kind: "json", |
| 162 | body: data |
| 163 | }); |
| 164 | } |
| 165 | |
| 166 | async delScript(guildId: string, id: number): Promise<ApiResult<EmptyResponse>> { |
| 167 | return await this.delete(`/api/guilds/${guildId}/scripts/${id}`); |
Tested by
no test coverage detected