Use published Discord collectibles catalog.
All checks were successful
All checks were successful
Fetch and persist the public release catalog locally while retiring client-side Discord token handling.
This commit is contained in:
@@ -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) });
|
||||
|
||||
Reference in New Issue
Block a user