Use published Discord collectibles catalog.
All checks were successful
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m54s
Build / build-linux (push) Successful in 3m5s
Build / finalize-release (push) Successful in 4s

Fetch and persist the public release catalog locally while retiring client-side Discord token handling.
This commit is contained in:
2026-08-24 19:29:53 +10:00
parent ce7b2104ad
commit 9d7ae1d63b
4 changed files with 59 additions and 127 deletions

View File

@@ -1903,26 +1903,6 @@ ipcMain.handle('plugin:read-code', async (event, pluginId) => {
}
});
ipcMain.handle('discord-collectibles:has-token', () => {
return { success: true, data: discordCollectibles.hasToken() };
});
ipcMain.handle('discord-collectibles:set-token', (event, { token }) => {
try {
return discordCollectibles.setToken(token);
} catch (error) {
return { success: false, error: error.message };
}
});
ipcMain.handle('discord-collectibles:clear-token', () => {
try {
return discordCollectibles.clearToken();
} catch (error) {
return { success: false, error: error.message };
}
});
ipcMain.handle('discord-collectibles:fetch-catalog', async (event, { force } = {}) => {
try {
return await discordCollectibles.getCatalog({ force: Boolean(force) });