(value: BotGuild | null)
| 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 }); |
nothing calls this directly
no test coverage detected