#๐พ-core-development
1 messages ยท Page 43 of 1
weirdly on vencord desktop i can't get the title bar to go away
even after
and fully restarting
also word on the street is we should try https://github.com/Vencord/Desktop which by default has separate settings from discord stable ๐
That worked perfectly for me. Thanks for the tip :)
Don't you want to make some limit to the cache maybe? Won't it eat up too much memory?
i seperated it to 32k files, each per user.
it don't load 5MB json from original usrbg anymore.
when u open a profile, it fetch only one link for that user, and cache it.
if user don't have link, still cache something so it won't try to fetch again.
That's because it's just discord web
And vencord doesn't know it's in a browser
i wasn't sure if that toggle was meant to remove the bar?
So it runs the wrong code
Yeah it is
But vencord desktop doesn't have that code
oh but not fully implemented :/
i see i see
trying some stuff w authotkey rn cuz i have it anyway
Kinda wacky but worksish if you do winset style
:O
i did realise though, why would you have the tray visible if it disappears when vencord closes?
it does
I didn't make a release yet tho
I think with popups it would be buggy.
Also removing this would be nice :p

It's been for like more than a month


is that musicolet?
@cunning canyon expect a PR to a PR 
huh what
i dont get it
ah lol
thank you
I would just not store the request result at all
assuming u fetch from github raw it will already cache for 5 minutes
hmm so let the fetch run everytime open non-nitrobanner profile?
help im explod
now how to i return the text and update
bannerHook(banner: string, userId: string) {
const update = useForceUpdater();
if (banner/* || userBg[userId] === null*/) return banner;
// if (userBg[userId]) return userBg[userId];
fetch(URL + userId + ".txt").then(res => {
if (res.status === 200) {
res.text().then(text => {
// userBg[userId] = text;
update();
});
}/* else {
userBg[userId] = null;
}*/
});
},
I guess you don't handle async properly?
@brazen phoenix ๐ญ
I'd just use useAwaiter, with undefined as fallback value, then it will rerender with fake bg once fetched(?)
function usePromise(promise, fallback) {
const [state, setState] = React.useState(fallback ?? null);
React.useEffect(() => {
promise.then(value => {
setState(value);
});
}, [promise]);
return state;
}
useAwaiter already does something like that if i understand correctly
it's under "@utils/misc"
No clue what that is, I guess a custom hook vencord has?
yup
Hey thats me !!
this hook is very flawed but u probably know that
but we have a hook that does just that (and works around the flaws) called useAwaiter as mentioned by pylix
**misc.tsx: **Lines 37-45
/**
* Await a promise
* @param factory Factory
* @param fallbackValue The fallback value that will be used until the promise resolved
* @returns [value, error, isPending]
*/
export function useAwaiter<T>(factory: () => Promise<T>): AwaiterRes<T | null>;
export function useAwaiter<T>(factory: () => Promise<T>, providedOpts: AwaiterOpts<T>): AwaiterRes<T>;
export function useAwaiter<T>(factory: () => Promise<T>, providedOpts?: AwaiterOpts<T | null>): AwaiterRes<T | null> {
It's the most basic example that is also easy to understand
But yeah I'm aware of the zombie promises

Sometimes you don't want to leave servers! This would hide the leave server button until you unlock the server.
I thought my birth was useless, I feel this is worse.
after trying for half an hour, i think i cant do it 
..should i?
i still have vscode open
please 
ven pls i have good pr https://github.com/Vendicated/Vencord/pull/859
people try to be formly on github: challange (impossible)
hush strenchie
jokes aside, I think I'd use this since I'm in quite a few servers where I may forget that I have a special role and leave.
chino jumpscare
@umbral hedge hello h (good nickname)! what did you find confusing about my suggestion? you can downvote it if you don't like it but i thought it was clear. sorry for ping :p
@cunning canyon https://github.com/AutumnVN/Vencord/pull/2
you are opening a pull request on a pull request at this point! xD
github has no concept of downvotes so reactions are downvotes lol
it just seems kinda pointless considering discord asks you if you actually want to leave anyways
there is ๐
i didn't know they didn't have a proper downvote action though
never had to do it :)
thumbs down to me is like "this is dogshit delete it" whereas :/ is more like "it's okay but I don't see the use"
I just do this, but you can still navigate to it with kb
#guild-context-leave-guild {pointer-events: none;}
thank youu, good night
either you forget or you're leaving a lot of servers at once
similar concept to https://www.curseforge.com/minecraft/mc-mods/cherished-worlds
mistakes do happen!
idk, maybe it's not that useful - just trying to explain why i personally thought it may be nice
^ I quite like this idea actually. I find that the more places I can prevent myself messing up, the better.
you can try my css, it just disables the mouse over it
what for
making it look like a reply :) i think i said a while ago :P
ah
i tried modifying new messages, but i wonder if there's a way to do it just in the ui
MessageStore.getMessage("123").type = 19 
(kind of hope this doesnt work)
probably dispatch fuckery as usual
could be a simple string-patch on the message store
or nvm the websocket is the direct source, so you'd patch that
i usually instinctively click on leave yes
so a plugin to swap the buttons then
genius
lol please not
that would be very confusing
xD
[clipboard message i don't type this fast] i think being able to lock things is quite common, first example i can think of is save states on the snes classic though xP
there's also servers which may not have any invites available
I swear there used to be a plugin like that on powercord
ah, this is just something that came into my mind
there was some plugin called admin something where you couldn't move channels
pretty sure that was just the channel locker thing
prob
where u cant type in a channel
some servers have a self-timeout command for that
anyway, i'll redo the suggest and add some reasons for and against
*suggestion
The Suggest
.footer-IubaaS:has(.colorRed-2VFhM4) {
display: flex;
}
/* cancel */
.footer-IubaaS:has(.colorRed-2VFhM4) .colorPrimary-2-Lusz {
background-color: var(--button-secondary-background); /* or use --button-positive-background for green */
color: var(--text-normal);
order: -1;
}
/* leave (and other dangerous confirm actions) */
.footer-IubaaS .colorRed-2VFhM4 {
background: none;
color: var(--white-500);
}

lmao
// ROugh example that doesnt work
// Replace "SERVER_ID_HERE" with the actual server ID
const SERVER_ID = "SERVER_ID_HERE";
window.addEventListener("beforeunload", function (event) {
const server = getServer(SERVER_ID);
if (server && server.locked) {
event.preventDefault();
event.returnValue = "";
alert("You cannot leave the server while it is locked.");
}
});
function getServer(id) {
const guilds = document.querySelectorAll("[class*=guild]"); // Select all guild elements
for (let guild of guilds) {
const guildId = guild.getAttribute("data-list-item-id");
if (guildId === id) {
const lockedIcon = guild.querySelector("[class*=padlock]");
if (lockedIcon) {
return { id: id, locked: true };
}
return { id: id, locked: false };
}
}
return null;
}
i would probably just click on the background to dismiss it out of fear at this point

waiit a second
making a plugin that randomises the order of these buttons
:3
just make the leave dialog say if you leave you will explode
seriously though i think this would be better xd
make it a double click perhaps
i have a good idea
there are several ideas here
which one
the point is to make it harder on specific servers
aw hell nah my vanced just killed itself
because if you're leaving a lot of servers you're going to be repeating the same action
what happened ๐ญ
YouTube jumpscare
lightmode
I dont even have this prs repo on my pc anymore trol you do this tomorrow
why is that an excuse?
@lime stone okay so once you open the leave server dialog it will play this sound https://youtu.be/KKjobijhKOI, violently shake your screen and flash
โ ๏ธ all over your discord
Provided to YouTube by Mugo
Nuclear Alarm Siren ยท Prestigigator ยท Prestigigator ยท Kamil Szyลkiewicz
Nuclear Alarm Siren
โ 2012 Wertofix Media
Released on: 2012-04-12
Auto-generated by YouTube.
would that be good enough
๐ญ
Also I don't have the link, and I am not in the discord server.
uh so i think that may give me a panic attack
good
and delete my discord account
can't leave the server on accident if youre busy having a panic attack
๐คฃ

i wanna play this later and blast it
lmao
#moderator-only message can confirm this didnt work
wait
i forgot the shaking
hold on
can you finally admit my suggestion is better?
make it louder
LMAO
Some CSS classes to move your DOM! Easy-to-use classes that will add different kind of shake to each part of your site.
x3 i want to do it exclusively in the ui
searching for "19" doesn't work well
maybe switch\([A-z]+.type\) will bring something up
find(m => m.S?.dispatch).S.dispatch("SHAKE_APP", { duration: 2000, intensity: 2 })
why does this not work
reduced motion?
nah
(if you have it on that is :p)
so useful https://i.nein.win/1681142596
AYO
what in the world is that
why- just why
something with discord's confetti when buying nitro? (I haven't looked)
๐
it doesnt shake the modal ๐
look into the nitro gift modal, it does shaking
i did a setTimeout and clicked on the app and didnt get a shake 
(dont run if u have epilespy maybe)
setTimeout(() => find(m => m.S?.dispatch).S.dispatch("SHAKE_APP", { duration: 10_000, intensity: 20 }), 1000)
maybe should also spoiler videos :p
why wont it work 
it is!!!
:MenheraBonk:
lol the Kyza shake app
guhh reply animation isn't smooth on rn
kill

is very high-effort
still not going to use this idc
nah i wrote this in 10 minutes xD
I installed vendetta though for stupid missing features
var orig = findByProps("jsxs").jsx
findByProps("jsxs").jsx = function() {
if (arguments[0] === findByProps("ConfirmModal").ConfirmModal) causeChaos()
return orig.apply(this, arguments);
}
function causeChaos() {
find(m => m.S?.dispatch).S.dispatch("SHAKE_APP", { duration: 10_000, intensity: 20 })
new Audio("https://cdn.discordapp.com/attachments/1033680203433660458/1095012995295359136/Nuclear_Alarm_Siren_KKjobijhKOI.mp3").play()
for (let i = 0; i < 100; i++) {
const div = document.createElement("div");
div.className = "banana";
Object.assign(div.style, {
"z-index": 9999999,
height: "2em",
width: "2em",
position: "absolute",
top: Math.floor(Math.random() * document.body.clientHeight) + "px",
left: Math.floor(Math.random() * document.body.clientWidth) + "px",
background: ["url(https://cdn.discordapp.com/emojis/961475852061794344.gif?size=256)", "url(https://discord.com/assets/289673858e06dfa2e0e3a7ee610c3a30.svg)"][Math.floor(Math.random() * 2)]
})
document.body.append(div)
}
}
hm, tbf i've done similar things for a joke

monkeypatching in vencord
dosabnรถe reduced motion
hm, i join too many servers
dosabnรถe
disbale
maybe also add this for joining servers?
disable
disbalr
discord for hay bales
MAKE IT STOP
lol im in a billion servers but by force
half-joking idk whether this is possible
certainly is from here
does that end chaos as well
lol you didn't see
I don't think that even works on mobile anyways cause no shake app
discord.com webview 
lol I have it on my computer too
ayeee
https://cdn.discordapp.com/emojis/1091853954045972530.gif?size=48&name=oneko_zzz&quality=lossless should become
when you have a notification in the tray
af42af0 feat: implement translucency for macOS (#4) - ryanccn
@lime stone it was indeed broken https://github.com/Vencord/Desktop/commit/1c2ed4679dc07dc5c33953784bd3599ced2f853b
interesting fix
javascript/typescript always confuses me x3
this is the fix
i changed the way Settings worked and forgot to update that code
require() returns any instead of the proper type so that part didn't have any type checking, that's why i added a typecast now
@woeful sable
in any case this ext is awesome https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-github-actions
Extension for Visual Studio Code - GitHub Actions workflows and runs for github.com hosted repositories in VS Code
:3
ayo wtf it validates inputs to specific actions
THIS IS SO COOL WTF



I'm gonna need to know that hatsune miku background
@woeful sable E: Unable to locate package makepkg
fix
https://launchpad.net/ubuntu/jammy/+package/makepkg
https://launchpad.net/ubuntu/lunar/+package/makepkg
itso nly in uwuntu23
not 22
is it not on backpiorts
review my pr vending machine 
nice! (trying out ways to implement the feature, i don't think this is it)
the funny duplicating context menu item
i've made it!
it kind of feels weird though!
how can you store it persistently?
string option of comma separated servers?
hm, i wonder if server notes would also be useful...
sob
maybe this is a bad idea
i just feel like it's good to mark severs which are important?
This is a little less obvious than "you've very intentionally locked leaving this specific server" though.
hm, could use DataStore
argh, requires await
which then requires async which messes up the menu
ive updated vencord and used the update feature of the installer but launching discord it gets stuck with "downloading updates 1 of 15" and then "update failed" on a loop


use our support channel please
d1296d1 Windows: Fix taskbar icon getting removed on up... - Vendicated
can i make it just... wait on the same thread? :3
evil!
otherwise the context menu doesn't update until hover
common ubuntu L
I'll download deb manually maybe
function ButtonEntry() {
const [guilds] = useAwaiter(() => DataStore.get("whatever"));
if (!guilds) return null;
return <MenuItem />
}
and I'll actually try to test the workflow 
instead of just the scrip
true
jeez everyone is using this
pretty
you#re the outlier
rate
average windows
wtf discord added new themes
@woeful sable did u know of sh subshells
sorry, wheres the support channel?
yea
vencord desktop sick
set -e thoo
wtf
ig but subshell is better practice cause often times u wanna cd to full path without knowing where user currently is
is this bash or shitbloats
idk I will wake up first
isn't sh on Linux changed by chsh or whatever its called?
does sed support lookahead
oh
it was my theme I was testing the other day
broo
how come light themes are so much better than dark
like you dont get jumpscared with the ugly gray on a red theme
Are you on drugs?
discord is insane
#!/bin/sh
set -e
VERSION=$(git describe --tags --abbrev=0 | tr -d 'v')
SHASUM=$(sha256sum "dist/VencordDesktop-$VERSION.tar.gz" | awk '{ print $1 }')
git clone ssh://aur@aur.archlinux.org/vencord-desktop-bin.git aurpkg
cd aurpkg
sed -i "s/^pkgver=.*$/pkgver=$VERSION/" PKGBUILD
sed -i "s/^pkgver = .*$/pkgver = $VERSION/" .SRCINFO
sed -i "s/^sha256sums=('.*'/sha256sums=('$SHASUM'/" PKGBUILD
sed -i "s/^sha256sums = [^S].*$/sha256sums = $SHASUM/" .SRCINFO
git commit -a -m "Bump version to $VERSION"
git push
cd ..
rm -rf aurpkg
should work probably
I'm not
gradient light themes are so much better than dark ones
can i have a link to that plugin? As i also want a plugin like that on vencord
nuh uh
wha
amoled + light theme = amazing
are u saying it no work
you're replacing all sha sums
oh right
what are you doing
All of the gradient light themes are almost identical on my monitor
wait
is sed global by default
we need to replace the first hash
per line
like wtf
tbh I think makepkg probably works as a standalone binary
nah it needs depednencies
I'll make a test repo and see if I can wget it from somewhere 
banana
oh, i missed your message xD
i used a cache to make it load faster
is this ok?
Still really not sure whether we need this!
merge if cute :3
oh, is that why they weren't saving..?
yea
@austere talon I forgot I can literally test it on my machine
TENCENT
wtf why is that so old
HORROR
i will update immediately
horrifying
the absolute state of ubuntu
cares so little about your privacy that after getting heavily criticised for sending ur search data to amazon and friends they also use tencent mirror
I will kernel.org
true
should we host vencord deb repo
When I used useAwaiter, it gave me some idea how it worked and therefore why this bug occurs.
It worries me how quick i did this :p
Downloading https://mirrors.edge.kernel.org/ubuntu//dists/jammy/main/binary-amd64/Packages.gz
i love double slash
@austere talon
true
i love accidentally switching keyboards
oh, which number?
733
not an issue, you mean you experienced it generally?
it's the issue when a message appears and the pronouns kind of dance a bit :3
hm, why did you want them hidden anyway?
i guess it looks cool so i won't argue!
haha logic yes
well it is an in-between between not showing them in chat and only in popup and showing them in chat and in popup
too much things to do:
โฏ cat ~/Documents/TODO/TODO.norg | wc -l
286
looks good, I'll merge in a bit with other changes @limber skiff
hooks cannot be called conditionally, this will cause ugly errors
this would be a better solution, and then just remove the other code
fallbackValue: getCachedPronouns(id),
this seems to work too?
#magnify-modal {
b21516d Make QuickCss window title consistent with othe... - aRealCatTBH
0a3dc5c VoiceUserShow: Fix lack of bottom margin (#853) - Luna-devv
I dont even have this prs repo on my pc anymore trol you do this tomorrow
why is that an excuse?
I am just lazy to git pull and change vencords location for one simple thing, its like 3 lines of code otherwise h. I am not in server either but heres url https://gh.lewisakura.moe/timezone/
<Link href="https://github.com/Discord-Custom-Covers/usrbg#request-your-own-usrbg">Get your own banner</Link>
maybe add a setting to prefer the original banner if applicable?
damn ven is speedruning github
84% [19 Contents-all 22.1 MB/32.8 MB 67%] 27.1 kB/s 6min 51s
๐ฅน
?
so slow
() => fetch(`${URL}${userId}.txt`).then(res => res.ok && res.text())
Ohh, would explain what was happening before :P
7eb12f0 SpotifyControls: Fix flashing button row when u... - Ezzud
does my suggestion still work without flashing? @lime stone
yes
would it be safe to remove
// If cached, return the cached pronouns
if (id in cache) res(getCachedPronouns(id)!);
?
neat
why?
then it would always append to the queue
oh, of course
i thought awaitAndFormatPronouns would remove the need, but i realise it wouldn't :P
merge?
i'll just test once more :p
im getting Oops an unknown exception has occurred ๐
let's see again
where?
yes the issue has returned :(
i must have killed pnpm build --watch and forgot
weird, should work according to docs :p
wait, must be the pending check
ahh
@austere talon should be mergeable now, i hope! :P
@austere talon we love apt
does it work correctly? @lime stone
yes, at least as far as i can see
/home/runner/work/_temp/a741b65d-3ab2-467b-a8f7-9e83c058b866.sh: line 7: 1858 User defined signal 1 makepkg --printsrcinfo > .SRCINFO
@austere talon fix
write(1, "==> ERROR: An unknown error has "..., 53==> ERROR: An unknown error has occurred. Exiting...
๐
that is very helpful of you makepkg
(the error doesnt even get to show up it just implodes)
well
it did,d
um
ok
I WILL get makepkg to run
NOPE
make the workflow run an x11 server and forward it via ssh then show a notification on ur pc to ssh into it and manually edit the files
true
Job defined at: dzshn/malware/.github/workflows/cat.yml@refs/heads/('w'")
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1945, si_uid=1001, si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffdafbc2650, WNOHANG, NULL) = -1 ECHILD (No child processes)
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f9366411a10) = 1946
strace: Process 1946 attached
[pid 1946] execve("/usr/bin/date", ["date", "+%s"], 0x55cb407ae170 /* 113 vars */) = 0
[pid 1944] wait4(-1, <unfinished ...>
[pid 1946] exit_group(0) = ?
[pid 1946] +++ exited with 0 +++
<... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1946
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1946, si_uid=1001, si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffdafbc24d0, WNOHANG, NULL) = -1 ECHILD (No child processes)
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f9366411a10) = 1947
strace: Process 1947 attached
[pid 1947] execve("/usr/bin/gettext", ["gettext", "%s signal caught. Exiting..."], 0x55cb409ade80 /* 115 vars */) = 0
[pid 1947] exit_group(0) = ?
[pid 1947] +++ exited with 0 +++
qhar
makepkg ON CRACK
his ass CAUGHT NO SIGNAL โผ๏ธ
@rustic nova any idea what could be causing this?
oofers
his ass is not opening in browser
@austere talon merge
apparently makepkg was crying because pacman wasn't installed lmao
I saw it tried to open smth at /usr/share/pacman
This step has been truncated due to its large size. Download the full logs from the menu once the workflow run has completed.
read
so unsane
should i make new tag
do you like my branch name
ye if u want

lmaoo
this was caused by my custom css somehow bruh
hm, this still seems to appear
that thing is a dismissible content so u could just set the bit flag for it in the user settings 
wp.findByProps("HUB_WAITLIST_UPSELL").NAGBAR_NOTICE_DOWNLOAD // 16
electron builder so slowwww
you will ubuntu-latest-16-cores
E: Unable to locate package makepkg
HUH
@austere talon you put the tag on the wrong commit
so it used the old workflow
fix

0.1.7 ๐ฅบ
@rustic nova am i stupid or is the .zoom class not used anywhere
zoom school class
.zoom img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
that class doesn't seem to exist??
u will document.getElementsByClassName("zoom")

btw this is why u never use tags for ur github actions
cause the author can just change tag to malicious code
- - uses: totallytrustworthyh4x0r/virus@2.0.0
+ - uses: totallytrustworthyh4x0r/virus@47f3b7fc892cf8334fd31c627ede388eaf69d575
lme me doing cursed tag stuff fucked up github
/home/runner/work/_temp/f5fb290b-e66a-4baf-a935-1bdafc0acc46.sh: line 1: /home/runner/.ssh/aur: No such file or directory
fake
oh my guh
mkdir ~/.ssh
tbh no reason to ~/.ssh ```diff
- echo $SSH_KEY > ~/.ssh/aur
- echo $SSH_PUB_KEY > ~/.ssh/aur.pub
- export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur"
- echo $SSH_KEY > /tmp/aur_key
- echo $SSH_PUB_KEY > /tmp/aur_key.pub
- export GIT_SSH_COMMAND="ssh -i /tmp/aur_key"
erm the pub keys dont need 600 !
does it matter
do i retag
maybe
one thing I like about circle ci is you could rerun the workflow with ssh access and actually debug it
github will make immediately
its always a pain to make workflows cuz u do so many things blindly
Successfully deployed to the following URLs:
vencord-website โ ./
vencord-website-git-main-vendicated.vercel.app
vencord.dev
vencord-website.vercel.app
vencord-website-vendicated.vercel.app
www.vencord.dev
lol wtf did i do
merge immediately
cee461e Revert "Improve page descriptions" - Vendicated
Successfully deployed to the following URLs:
vencord-website โ ./
vencord-website-vendicated.vercel.app
vencord-website-git-main-vendicated.vercel.app
www.vencord.dev
vencord-website.vercel.app
vencord.dev
WebContextMenus (had no effect):
ID: 638525
Match: /(?<=showApplicationCommandSuggestions;)if\(![A-Za-z_$][\w$]*\.[A-Za-z_$][\w$]*\)/
WebContextMenus (had no effect):
ID: 638525
Match: /("submit-button".+?)(\(0,[A-Za-z_$][\w$]*\.jsx\)\([A-Za-z_$][\w$]*\.MenuGroup,\{children:[A-Za-z_$][\w$]*\}\),){2}/
None
JSHandle@error
@austere talon
Successfully deployed to the following URLs:
vencord-website โ ./
vencord-website.vercel.app
vencord-website-vendicated.vercel.app
vencord-website-git-main-vendicated.vercel.app
www.vencord.dev
vencord.dev
i get the idea but I always get so confused
WebContextMenus (had no effect):
ID: 638525
Match: /(?<=showApplicationCommandSuggestions;)if\(![A-Za-z_$][\w$]*\.[A-Za-z_$][\w$]*\)/
WebContextMenus (had no effect):
ID: 638525
Match: /("submit-button".+?)(\(0,[A-Za-z_$][\w$]*\.jsx\)\([A-Za-z_$][\w$]*\.MenuGroup,\{children:[A-Za-z_$][\w$]*\}\),){2}/
DisableDMCallIdle (found no module):
ID: -
Match: .Messages.BOT_CALL_IDLE_DISCONNECT
None
JSHandle@error
I think apt suddenly decided to explode
bleh
I forgot sudo ๐ฅน
- ./scripts/ci/install_makepkg.sh >/dev/null 2>&1
+ sudo ./scripts/ci/install_makepkg.sh >/dev/null 2>&1
@austere talon LAST change.........
god why did you make the line-height so massive on headers? That's really inconvenient 
Successfully deployed to the following URLs:
vencord-website โ ./
vencord-website-git-main-vendicated.vercel.app
vencord.dev
vencord-website-vendicated.vercel.app
www.vencord.dev
vencord-website.vercel.app
it screams some type errors
which? @cunning canyon
res.ok && res.text()
I swear I actually tested it but I went "oh I should move sudo out of the script and add sudo on the run thing instead" but then I forgot to do the last part 
res.ok ? res.text() : (await import("segfault")).segfault()
weird nvm then
its what the design called for!!!1
anyway we can readjust it
tbf it does need adjustment
ok 
This is an issue tracker specifically for the redesign and what needs to be fixed.
- [ ] Heading line-heights are all weird. We need to find better ones.
- [ ] Move
Downloadsto the right. It was cool but it screws up people's muscle memory. - [ ] Take a look at any style overrides and see if they should be the defaults rather than individual overrides.
- [ ] Better icons for the plugins page. They're a bit out of place and don't really suit their meanings.
- [ ] Whilst we're at it,...
its slightly insane
like way too much lmao
i found some more issues anyway
so there's a list of them all that need to be fixed!
of which i will start
Not Now
Vertically center pages that don't fill up 100% of the content(?)
i think no
would probably look weird
Discord Account
SkoopyDev#9911
What is it that you'd like to see?
Since many servers use ServerStats or other similar bots that tell you the member count already, it would be nice to see a feature where the member count is disabled if ServerStats or some other bot is already showing the member count(or hide ServerStats' one idk).
Also, some members, like myself, don't really care about the amount of online members, so I think it would be useful to be able to disable that to dec...
I think they completely got rid of that
CallIdleStore is no longer a thing
woah
VOICE_STATE_UPDATES: function(e) {
return e.voiceStates.reduce((function(e, t) {
if (null != t.guildId)
return e;
var n = j.Z.getCurrentClientVoiceChannelId(null);
if (null == n) {
Zue.stop();
return e
}
if (1 === iE.ZP.countVoiceStatesForChannel(n)) {
xue = n;
Zue.start(Due, Uue, !1)
} else
Zue.stop();
return e
}
), !1)
},
whats that
the code
for what lol
(usrbg): discord crashs when i open dm with someone has nitro banner and i have no idea how to fix 
you're misusing hooks
conditional hooks aren't allowed
@austere talon permissions viewer review review

what about using hooks like this
thing?.useBlabla()
wha
if you cant find lol
your function must call the same amount of hooks every time it's ran
**index.tsx: **Lines 46-58
function GameActivityToggleButton() {
const showCurrentGame = ShowCurrentGame?.useSetting();
return (
<Button
tooltipText={showCurrentGame ? "Disable Game Activity" : "Enable Game Activity"}
icon={makeIcon(showCurrentGame)}
role="switch"
aria-checked={!showCurrentGame}
onClick={() => ShowCurrentGame?.updateSetting(old => !old)}
/>
);
}
**index.tsx: **Line 28
const ShowCurrentGame = getSettingStoreLazy<boolean>("status", "showCurrentGame");
I guess that would be the same amount lol
because that's how react tracks hooks
if ur function calls a different amount of hooks it explodes
what should i do
refactor to not have a conditional hook call
bannerHook(banner: string, userId: string) {
const func = banner && settings.store.nitroFirst
? () => Promise.resolve()
: () => fetch(`${USRBG}${userId}.txt`).then(res => res.ok ? res.text() : null);
return useAwaiter(func)[0] || void 0;
},

should be the other way around I think
jumpscare
what
well just do Promise.resolve(null) lol
now it jumpscare with 1 more line
ye
ah ok
jumpscare
omg i can read
bleh
why suppress output
dm issue is fixed but if open profile from friend list it still crashs oh my god
webext does too
so good
h
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
debian will EXPLODE
sanest apt command
apt-get install -qq -o=Dpkg::Use-Pty=0 <packages>
We took a look in the source of apt and discover that the output is produced by dpkg that was forked by apt. Then the source of dpkg shows that the annoying soutput is only issued when isatty(1) is true. This is only the case when the fork uses pty instead pipe. Back to apt, there is a undocumented configuration variable that allows to use pipe instead pty which then solve the problem:
actually its not even apt install <packages>
apt -f install
cuz dpkg leaves the packages broken since it cant resolve deps on its own
@austere talon it still explod when open nitro profile in friend list 
yes same that react thing
do I PR that or u fix it @austere talon
u
omw to opening the 10th pr related to aur package
tried
no
how did you do that? ive never seen that happen.
can you give me steps to reproduce that
phew
i forgot i tested some stuff related to the plugin in quickcss
so i had old styles conflicting
idk
@austere talon the ugly code before pylix's pr works very well and no crash lol magic
i will explode
wow ugly code is the best
what if it still broken @woeful sable
i will cry
@austere talon
wtf
this is so weird btw
it's been complaining about these for ages
but it works on my machine
ohh i think cause that code is never ran
like it only is loaded when u open context menu
wait no
mmmm
idk wh it wouldn't work
i think try to do this with useAwaiter will make it explod in someway, can i just keep store result tho
u didnt even question the mirror i picked
oh yeah probably
which do i use
Unsupported Match attribute \tIdentitiesOnly
/home/runner/.ssh/config line 1: Bad Match condition
/home/runner/.ssh/config: terminating, 1 bad configuration options
true
gonna make all my test repo's commit dates be 1970 january 1
guhhh why doesnt it work
are github actions runners blacklisted from the aur lol
do u ever just write a regex and it works first try
i give up u can yoink the scripts
ya
i will simply run a webhook listener on ur vps
the ones I did today were first try
actually NOP I will create a systemd timer on my computer that fetches github's api and bumps if needed
i love blbbbsabsbbllopppso feature
gonna make this use normal messages so u can spam like earlier
funnee
whag happen to 0.1.6
@austere talon ```
Apr 11 02:09:50 xyz bump.sh[17468]: ==> ERROR: Failure while downloading https://github.com/Vencord/Desktop/releases/download/v0.1.6/VencordDesktop-0.1.6.tar.gz
Apr 11 02:09:50 xyz bump.sh[17468]: Aborting...
Apr 11 02:09:50 xyz bump.sh[17464]: ==> ERROR: Failed to generate new checksums
Apr 11 02:09:50 xyz systemd[14125]: vencord-bin.service: Main process exited
gon
I made an epic systemd timer
@austere talon my script works
you love
#!/bin/sh
set -e
LATEST=$(curl -sSL https://api.github.com/repos/Vencord/Desktop/tags |
jq '.[0].name' -r |
tr -d 'v')
CURRENT=$(rg '(?<=pkgver=).*' PKGBUILD -o -P)
(
echo "$CURRENT"
echo "$LATEST"
) | sort -VC
sed -i "s/^pkgver=.*$/pkgver=$LATEST/" PKGBUILD
updpkgsums
makepkg --printsrcinfo >.SRCINFO
git commit -a -m "Bump version to $LATEST" --no-gpg-sign
git push
this runs daily
( 'v')
@austere talon do you love
least verbose systemd unit
# cat ~/.config/systemd/user/vencord-bin.timer
[Unit]
Description=Bump vencord-desktop-bin AUR package
Wants=network-online.target
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=default.target
# cat ~/.config/systemd/user/vencord-bin.service
[Unit]
Description=Bump vencord-desktop-bin AUR package
[Service]
Type=oneshot
WorkingDirectory=/home/dzshn/Documents/git/aur/vencord-desktop-bin
ExecStart=/home/dzshn/Documents/git/aur/vencord-desktop-bin/bump.sh
Wants=network-online.target so cool tho
true
when I wrote a network dependant cronjob I wrote some script that blocked until it managed to ping some site
it would just loop
real fix
#!/bin/sh
while ! ping -q -c 1 -W 1 archlinux.org >/dev/null
do
if [ $((WAIT_FOR_NETWORK_TRIES += 1)) -gt 100 ]
then
exit 1
fi
sleep 5
done```
rate
you will ping 1.1.1.1 every 10 ms
**doUpdate.sh: **
#!/bin/sh
set -e
/home/ven/.cronscripts/waitfornetwork.sh
pacman -Syu --noconfirm

wait what
it crashes?
actually before useAwaiter pr
crash when dm and open profile from friend list
if user havent been loaded it crash
nitro user
after changed to this it fix dm but still crash when open profile from friend list
with very cryptic react error
because i remove useAwaiter and keep fetch result instead
oh it doesn't happen with useForceUpdate?
yeah

alr I tried that and still can't reproduce the crash
restart discord, go to friend list, right click a nitro user has banner, click profile
yep doesn't crash
yes, before that fix if open dm with nitro user result same error crash
wait wtf
that's so weird
seems like infinite loop
actually no
that would freeze not restart
but that's really strange that shouldn't happen
lol you're dedicated to the chino 
I fixed
patches: [
{
find: ".bannerSrc,",
replacement: {
match: /(\i)\.bannerSrc,/,
replace: "$self.useBannerHook($1),"
}
}
],
useBannerHook(props: any) {
const { displayProfile, user } = props;
const [bg] = useAwaiter(() => {
return (displayProfile?.banner && settings.store.nitroFirst) || userBg[user.id] === null
? Promise.resolve(null)
: fetch(USRBG + user.id + ".txt")
.then(res => {
if (res.ok) return res.text().then(text => (userBg[user.id] = text));
else return (userBg[user.id] = null);
});
}, { fallbackValue: null, deps: [displayProfile] });
return bg;
},
@cunning canyon here you go
the point of use useAwaiter is to completely remove userBg object
does the desktop version not have the error boundary
it does
like I said it shouldn't crash like that
that means something is very wrong
thank you
no prob
WebviewCord
it's a draft for a reason @limber skiff lmao
I realized after I made the review
someone told me to make that plugin so I immediately speedran making it for the funnies
lmao
I made it in like half an hour
with the majority of that time being my brain damage
I way overcomplicated it
happens to me too
I tried to like extract their click callback for sending greets then realised it doesn't take parameters so I decided it was a good idea to patch the code and eval it then realised now you lose the closure so everything refers to undefined variables
then eventually I went to the intuitive logical solution I have now
I lost my brain trying to understand what you said
it's okay though no need to over explain it lol
I just copy pasted the context menu code from Spotify plugin lmao
I'm gonna cry cuz I think I will have to re make this component from scratch
ugly discord changed it
(Only you can see this channel)
lies
basically their code has a function that submits the greet and stuff that they use as onClick listeners
I wanted to use that for my own greets. but then I realised that function directly refers to local variables so you can't send other stickers than the one discord picked.
Then I decided it was a good solution to just replace the hardcoded variables in this function to my own and eval it. but obviously you lose the closure so all the other variables the function refers to won't exist
hope that made more sense
I matched their entire use Callback() initially, it's a pretty big function
oh I see
makes way more sense now
greeting is funny
you can greet messages that arent welcome ones
if you manually send the request
really?
yeah
oh
and it doesnt have rate limits
pretty sure
I dont really remember but I made a bot spam it
you can send any of the welcome stickers in a normal message in reply to welcome messages without nitro, that's how it initially used to work. that doesn't have a ratelimit









