(scriptId: number, enabled: boolean)
| 56 | } |
| 57 | |
| 58 | async function toggleScript(scriptId: number, enabled: boolean) { |
| 59 | let resp = await session.apiClient.updateScript(safeGuildId, scriptId, { |
| 60 | enabled, |
| 61 | }); |
| 62 | if (!isErrorResponse(resp)) { |
| 63 | fetchedData.reload(); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | async function createScript(name: string) { |
| 68 | let resp = await session.apiClient.createScript(safeGuildId, { |
no test coverage detected