MCPcopy Create free account
hub / github.com/Botloader/botloader / addPluginToGuild

Method addPluginToGuild

frontend-common/src/api_client.ts:240–250  ·  view source on GitHub ↗
(pluginId: number, guildId: string, params: {
        auto_update: boolean,
    })

Source from the content-addressed store, hash-verified

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`);

Callers 2

addToServerFunction · 0.80
selectTestGuildFunction · 0.80

Calls 1

postMethod · 0.95

Tested by

no test coverage detected