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

Function handleClose

frontend/src/components/AddPluginToServer.tsx:24–30  ·  view source on GitHub ↗
(value: BotGuild | null)

Source from the content-addressed store, hash-verified

22 };
23
24 const handleClose = (value: BotGuild | null) => {
25 if (value) {
26 setAddingToServer(value);
27 addToServer(value);
28 }
29 setOpen(false);
30 };
31
32 async function addToServer(guild: BotGuild) {
33 const resp = await session.apiClient.addPluginToGuild(plugin!.id, guild.guild.id, { auto_update: true });

Callers

nothing calls this directly

Calls 1

addToServerFunction · 0.85

Tested by

no test coverage detected