diff --git a/src/core/mappings/database.ts b/src/core/mappings/database.ts index 026a794..47f7c8c 100644 --- a/src/core/mappings/database.ts +++ b/src/core/mappings/database.ts @@ -29,8 +29,6 @@ export interface ODDatabaseManagerIdMappings extends api.ODDatabaseManagerIdCons * It's used to generate typescript declarations for this class. */ export interface ODGlobalDatabaseIdMappings extends api.ODDatabaseIdConstraint { - "opendiscord:panel-message":string, - "opendiscord:panel-update":string, "opendiscord:option-suffix-counter":number, "opendiscord:option-suffix-history":string[], "opendiscord:last-version":string diff --git a/src/core/startup/migration.ts b/src/core/startup/migration.ts index f06713e..4d7da9b 100644 --- a/src/core/startup/migration.ts +++ b/src/core/startup/migration.ts @@ -372,7 +372,7 @@ export const migrations = [ const message = await opendiscord.client.fetchChannelMessage(channelId,messageId) const autoUpdate = typeof (await globalDatabase.get("opendiscord:panel-update",panelMessage.key)) == "string" //if message still exists - if (message) migratedPanelStates.push({channelId,messageId,panelId:panelMessage.value,autoUpdate}) + if (message) migratedPanelStates.push({channelId,messageId,panelId:panelMessage.value as string,autoUpdate}) await globalDatabase.delete("opendiscord:panel-message",panelMessage.key) await globalDatabase.delete("opendiscord:panel-update",panelMessage.key)