#importing gifs from json
1 messages ยท Page 1 of 1 (latest)
erm, the gifs
that's obvious, i can read
// export
copy(JSON.stringify(JSON.stringify(Vencord.Webpack.Common.UserSettingsActionCreators.FrecencyUserSettingsActionCreators.getCurrentValue().favoriteGifs.gifs)));
// import
const clipboardData = PASTE HERE;
Vencord.Webpack.Common.UserSettingsActionCreators.FrecencyUserSettingsActionCreators.updateAsync("favoriteGifs", data => Object.assign(data, JSON.parse(clipboardData)), 0);
i didn't test but it probably works
do at ur own risk tho

overwrite or append?
append
append merges duplicates right
could I use this to clear favorite gifs
ended up clearing my gifs too, here's what i used
hopefully i dont get termed but we'll see
Vencord.Webpack.Common.UserSettingsActionCreators.FrecencyUserSettingsActionCreators.updateAsync(
"favoriteGifs",
data => {
Object.keys(data.gifs).forEach(k => delete data.gifs[k]);
return data;
},
0
);
no that's good
and you wouldn't get termed
if u mess this stuff up worst case scenario u brick your settings and it either completely breaks your discord on all devices or just resets all your discord settings
ah ok, im just rlly scared of api abuse
been using vencord/vesktop for a while tho its goated
good to know ty!
if it's your first term submit an appeal and say it was an extension you downloaded and they will enable ur acc again
does this somehow not work with the switching accounts feature
if I import gifs from my main they don't change on my alt and then when i go back to my main all of my gifs are gone but importing them works on that account still
very weird
insane plugin 
how do i import gifs if i copied over the metadata aswell..
this deosnt work for me
idk how the formatting is supposed to b
Iโm guessing it broke
