(pluginId: number, guildId: string, params: {
auto_update: boolean,
})
| 238 | } |
| 239 | |
| 240 | async addPluginToGuild(pluginId: number, guildId: string, params: { |
| 241 | auto_update: boolean, |
| 242 | }): Promise<ApiResult<ScriptPlugin>> { |
| 243 | return await this.post(`/api/guilds/${guildId}/add_plugin`, { |
| 244 | kind: "json", |
| 245 | body: { |
| 246 | plugin_id: pluginId, |
| 247 | auto_update: params.auto_update, |
| 248 | } |
| 249 | }); |
| 250 | } |
| 251 | |
| 252 | async updateScriptPlugin(guildId: string, scriptId: number): Promise<ApiResult<ScriptPlugin>> { |
| 253 | return await this.post(`/api/guilds/${guildId}/scripts/${scriptId}/update_plugin`); |
no test coverage detected