reanme useDataStore to syncDataStore

This commit is contained in:
thororen1234 2025-12-04 12:01:17 -05:00
parent 9d1dcd4b42
commit ebac545c7a
No known key found for this signature in database

View file

@ -42,16 +42,16 @@ export async function importSettings(data: string) {
throw new Error("Invalid Settings. Is this even a Vencord Settings file?");
}
export async function exportSettings({ useDataStore = true, minify }: { useDataStore?: boolean; minify?: boolean; }) {
export async function exportSettings({ syncDataStore = true, minify }: { syncDataStore?: boolean; minify?: boolean; }) {
const settings = VencordNative.settings.get();
const quickCss = await VencordNative.quickCss.get();
const dataStore = useDataStore ? await DataStore.entries() : undefined;
const dataStore = syncDataStore ? await DataStore.entries() : undefined;
return JSON.stringify(
{
settings,
quickCss,
...(useDataStore && { dataStore })
...(syncDataStore && { dataStore })
},
null,
minify ? undefined : 4