Method
publishScriptPluginVersion
(pluginId: number, params: {
source: string,
})
Source from the content-addressed store, hash-verified
| 229 | } |
| 230 | |
| 231 | async publishScriptPluginVersion(pluginId: number, params: { |
| 232 | source: string, |
| 233 | }): Promise<ApiResult<{}>> { |
| 234 | return await this.post(`/api/user/plugins/${pluginId}/publish_script_version`, { |
| 235 | kind: "json", |
| 236 | body: { new_source: params.source } |
| 237 | }); |
| 238 | } |
| 239 | |
| 240 | async addPluginToGuild(pluginId: number, guildId: string, params: { |
| 241 | auto_update: boolean, |
Tested by
no test coverage detected