#πŸ‘Ύ-core-development

1 messages Β· Page 233 of 1

golden gulch
#

that said if someone is interested we'd both support it all the way and can provide the tooling and information that would be needed for it

austere talon
#

apparently i already created a chrome web store api key 5 years ago

limber skiff
#

actually

#

that's for the pr right?

#

then there is no function for it

jolly egret
#

huh?

limber skiff
#

you are asking for my review correct?

jolly egret
#

yeah you told me to rename what i added and migrate the existing setting

austere talon
limber skiff
#

leave the rename of the existing setting for me

fossil inlet
odd heath
#

nuckyz will review my small and totally not 1450 line pr

fossil inlet
#

youtube slop

#

350 views 😭

long stream
#

why do u need ai for scraping 😭

#

how can u not know how to use something like puppeteer

jolly egret
#

looks fine or should i not change the Settings.plugin to settings.store?

fossil inlet
#

this should do what you want

#

git rev-list --ancestry-path $(git describe --tags --abbrev=0)..HEAD

austere talon
#

$ext

frozen knotBOT
austere talon
#

fire

odd heath
#

Re

#

fckign

#

email reply

dusk blaze
fossil inlet
dusk blaze
#

new role so good…

golden gulch
#

also as a side note since the removal of usrbg as a built in plugin was mentioned (even though vee said to keep it I figure this is worth mentioning) - based on the very loose stats cloudflare gives me it has ~2.3 million monthly users and I would politely request to not deal with having to tell that many people that the plugin was removed blbctscrd

#

(also hi i'm back i just needed a quick break from discord due to stuffℒ️)

jolly egret
#

its DOOMED

fossil inlet
austere talon
dusk blaze
jolly egret
#

boring

golden gulch
jolly egret
#

i've always done it this way

austere talon
#

or better yet

jolly egret
#

let me just fix my shit itsCringeToAddPrefixToYourEmoji

fossil inlet
dusk blaze
#

katlyn will die of trillions of users dming

austere talon
#
Unfortunately, we had to remove the Usrbg plugin due to legal reasons. For any questions, please email [your email here]
golden gulch
#

fear

fossil inlet
#

@swift fjord soon

limber skiff
#

we are gonna add the Vencord changelog modal just to show that message

fossil inlet
#

add it to support helper

limber skiff
#

and explicitly highlight katlyn email

jolly egret
#

changes pushed

limber skiff
swift fjord
#

if i start getting support emails then im ddosing vees vps

jolly egret
#

do it anyway

austere talon
#

$ext

frozen knotBOT
austere talon
limber skiff
jolly egret
#

cool

limber skiff
#

I'm feeling tired now

jolly egret
#

all good

limber skiff
#

(also dont get it wrong I'm not complaining)

austere talon
#

i pushed

#

vextversion

nimble pendantBOT
limber skiff
#

hugee command

austere talon
#

surprisingly easy

jolly egret
#

the days are gone of opening it myself and scrolling down

limber skiff
#

ngl

#

regex way easier than using a scraper

austere talon
#

yeah lmao but less stable

limber skiff
#

doubt it will break

austere talon
#

in this case yeah

#

but good luck scraping something more complex with pure regex

limber skiff
#

yeah

austere talon
#

like trying to scrape products from amazon or smth

limber skiff
#

have you tried that before

#

πŸ˜›

austere talon
austere talon
#

like optional nodes

#

basically impossible to parse with regex

limber skiff
#

omg can we have that discord fixes plugin and fucking change this to a proper flex component

#

it's so bad to align those

#

and always feel un-aligned

fossil inlet
#

vext

nimble pendantBOT
fossil inlet
limber skiff
#

is so dumb

austere talon
jolly egret
#

vexplode

fossil inlet
#

i wonder if its possible to easily route a single connection through open vpn/wg

austere talon
#

@limber skiff what do you think about how we should store the favicon pngs for vencord code

austere talon
limber skiff
#

just do static.vencord.dev if that doesnt explode vencord servers

#

as for third party builds of vencord, they can modify the csp for it...

austere talon
#

also no it wouldn't explode

#

we just need to give images unique filenames (hashes) and we can make cloudflare cache them for an entire year

#

so cloudflare takes 99% load

#

that's how I serve badges blobcatcozy

limber skiff
#

I think so yes, we need a proper way to store stuff thats not github or remote fetch or random cdn or even Vencord repo

#

however hmm

#

im not sure how plugin dev would be like that

#

would have to manually request or something

austere talon
#

i was actually working on smth like that in the past

you upload file to discord and venbot optimises it and automatically pushes it to git repo

#

venbot still has code for that iirc

#

but it was kinda bad

limber skiff
#

I swear im having to click github links 3 times for them to open

#

so weird

austere talon
#

SAME

fossil inlet
limber skiff
#

after it opens once it's normal

#

but before that

austere talon
#

the only annoying thing about csp update is that you won't be able to fetch() random sites

austere talon
limber skiff
#

yeah literally

#

I clicked it

#

didnt open

austere talon
fossil inlet
limber skiff
#

that one opened instantly for me

austere talon
#

i love chrome logging this every time discord fetches any image

fossil inlet
austere talon
#

guys i think chrome might be moving towards a new experience that allows users to choose to browse without third-party cookies.

charred monolithBOT
rugged spire
#

yes i make bad PR titles

#

i had the opposite thought for some reason, i wouldn't expect the dots to stop click propagation
especially when it's in dots only mode

rugged spire
austere talon
#

i was in the process of doing it but

#

it's a lot

#

and i dont wanna break their code

#

@fossil inlet for ur showconnections pr

#

it's kinda meh to make an entire custom compoennt

#

you could just add some more props to the slider settings type

#

to only allow precise ints

fossil inlet
#

nop

#

tried that

austere talon
#

wdym tried that

rugged spire
#

just make it number of rows

fossil inlet
austere talon
fossil inlet
#

because the size of the icons and margins can vary

#

and i dont think the profile size is constant

#

(if it was, id calculate it)

fossil inlet
rugged spire
#

AAAAAAA I see why you say that it's not that simple

austere talon
#

i mean update the settings component to allow you to control this via behaviour

austere talon
#

edit the settings slider component

#

to add props

#

to control this behaviour

fossil inlet
#

ah

nimble pendantBOT
limber skiff
#

that is NOT fire

rugged spire
fossil inlet
austere talon
limber skiff
#

yesterday cotd was so good

austere talon
#

lc.gem fire color hex code

rancid idolBOT
# austere talon lc.gem fire color hex code
fire color hex code

The hex code for a common fire color is #AA4203.

This represents a vibrant and intense orange.

Keep in mind that fire can have a wide range of colors, from yellow and orange to red and even blue or green in specific conditions.

limber skiff
#

I might steal and put my color as that hehe

rugged spire
#

who wants to watch me add size 20 avatars

#

to both of those plugins

limber skiff
#

I'm in my phone

rugged spire
#

users will immediately notice though

charred monolithBOT
rugged spire
limber skiff
#

damn

#

so ugly

charred monolithBOT
#

Discord Account

No response

What happens when the bug or crash occurs?

the user popout profile vanishes even if it was in use

Image

What is the expected behaviour?

i expect clicking the users avatar to do nothing or for the popout to stay even after all users have stopped typing

How do you recreate this bug or crash?

  1. click on a users avatar in a typing indicator
  2. start doing some...
fossil inlet
#

that bug has annoyed me for a while now

fossil inlet
#

i think its a side-effect of how discord renders their popouts

#

not sure

limber skiff
#

sadan why 😭

fossil inlet
#

it annoys me

limber skiff
#

sqaa pr is literally to avoid that

rugged spire
fossil inlet
#

nop

limber skiff
#

to make clicking do nothing

fossil inlet
#

something else (i think)

rugged spire
#

different issue

limber skiff
#

huh

fossil inlet
#

😭

limber skiff
#

I still don't understand what your pr fixes then

rugged spire
#

clicking the avatar or pressing space/enter in the message box inside of the popout will switch to that channel

limber skiff
#

ah

#

I get it

fossil inlet
#

@rugged spire is that right

rugged spire
#

Yop

#

also just to make you feel even more husk

limber skiff
#

unless they have a prop to control it in Popouts

fossil inlet
limber skiff
#

it's just how their Popout component works

#

if there is no prop to control then rip

rugged spire
#

i will leave a painful comment on that issue

limber skiff
#

implementing Popouts from scratch would not be a solution

fossil inlet
#

i could be crazy but i remember a popout ref

fossil inlet
limber skiff
#

hmm

rugged spire
charred monolithBOT
limber skiff
#

bad news there is no way to avoid it

limber skiff
rugged spire
#

what do you mean nop

limber skiff
#

when you click a user it uses the Popout component... to create the popout

#

and when that component is unmouted it dispatches a popout close

rugged spire
#

it looks like it just involves replacing looking up the user from the users prop

#

The component is never unmounted

#

nvm

#

it is

#

time to play around with it!

limber skiff
#

that's called on unmount of the Popout

rugged spire
#

all we need to do is just not unmount the component? or how horrible is this idea

fossil inlet
limber skiff
#

that's just not doable

rugged spire
limber skiff
#

re-implement the user component to render null but keep the popout

rugged spire
#

i mean the usersummaryitem btw

limber skiff
#

which means you are creating components which just keep stacking

fossil inlet
limber skiff
#

and never disappear

rugged spire
#

my testing is going well

#

i did it

glass jasper
charred monolithBOT
rugged spire
#

github destroys it

#

insane

fossil inlet
#

git format-patch in shambles rn

rugged spire
#

no github's markdown html renderer just explodes the codeblock formatting if its inside of html

fossil inlet
#

i cant apply a codeblock blobcatcozy

rugged spire
shut vineBOT
#

Alright @rugged spire, in 1 day: pr this mess

rugged spire
#

unless i should put it in the existing PR

#

idk

fossil inlet
rugged spire
#

the one to fix events bubbling to clickable components

fossil inlet
#

depends how cursed this fix is

hollow musk
#

hey guys, so @fossil inlet said [here](#1331976527545368646 message) that I can consider PR-ing my theme it to fix Client Theme not working with Visual Refresh. The issue is that I have no idea where to add the CSS in the typescrcipt file (i do know that the file to change is src\plugins\clientTheme\index.tsx but now how). Do I ask for help here or in #🧩-plugin-development?

rugged spire
#

what is your fix

#

is it something that's generated

#

or is it static (put it in clientTheme.css)

hollow musk
#

static

#

it just takes the variables set by client theme

fossil inlet
rugged spire
#

just put it in there blobcatcozy

fossil inlet
#

ehhh, might be better to keep them separate

rugged spire
#

maybe?

fossil inlet
#

doesnt matter that much tho

hollow musk
fossil inlet
#

ITS BACK

rugged spire
#

probably your userscript manager

#

going insane

hollow musk
charred monolithBOT
fallen vale
#

@fossil inlet am i missing something obvious or?

fossil inlet
#

yea, the plugin has a clear use

#

eg: use permission viewer to see what role has a certain perm

#

use this role to find users with that perm

limber skiff
hollow musk
fossil inlet
#

@hollow musk did you generate that with a script or handwrite it

hollow musk
#

took from original css, used regex to find and replace

hollow musk
sterile oak
#

I don't really remember, but I think it's to avoid creating an array than pushing elements to it, I should used map smh

rugged spire
hollow musk
fossil inlet
#

/make small changes

hollow musk
#

so what exactly should i do?

fossil inlet
#

Well, how did you make the CSS in the first place

#

I'm assuming the numbers weren't chosen at random

hollow musk
#

there was a css file within the network page that handled the variables for the colors, i downloaded it, removed the uneccessary stuff, did a find and replace with regex and yeah

#

the numbers werent random, they were chosen by discord

fossil inlet
#

OK, that makes sense

#

Its 330 am for me

hollow musk
#

i forgot to disable anonymisefilenames blobcatcozy

charred monolithBOT
charred monolithBOT
#

Recently we got shortcuts in the plugins definition to use most apis, this one should add those shortcuts too
look at renderChatBarButton for an example

I was not able to find renderChatBarButton, can you explain those new changes and what am I required to do?

Instead of plugins calling the API in their start/stop methods, plugins should have a property with metadata about the tabs they will add

Take a look at #3028 where this was implemented for all the other APIs

De...

scenic brook
charred monolithBOT
jolly egret
#

from:@me has:image has:video has:sound

charred monolithBOT
jolly egret
#

didn't see
literally 1000 capital letters and warnings telling you to fuck off 😭

#

you just can't not see you're being intentionally oblivious

hollow musk
limber skiff
#

attempt to generate

#

the plugin already does for the old stuff

charred monolithBOT
shut vineBOT
#

@fossil inlet, <t:1737766685:R>: right-click to clear filters in members tab

limber skiff
#

this command is always so slow to run for the first time

#

I'm not sure why

austere talon
limber skiff
#

I did something

#

this didnt work tho LMAOOO

#

horribl

dusk blaze
#

starting a node script takes a second or two

#

vencord has pnpm dev -> pnpm watch -> pnpm build β€”watch -> build.mjs command

limber skiff
#

why insane then

dusk blaze
#

because it would be doable to put the build.mjs command in all of the above scripts blobCatCozy

#

then youd save some time

limber skiff
#

so you mean running pnpm scripts is slow

dusk blaze
#

the initial start does for some reason

limber skiff
#

shit ass package manager

dusk blaze
#

i was wrong

#

and bun is soooo fast

fossil inlet
limber skiff
somber thorn
# dusk blaze and bun is soooo fast

how about deno ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

fossil inlet
#

@limber skiff didnt you fix a bug like this a couple of months ago?

limber skiff
#

hm

#

not for message logger I guess

odd heath
fossil inlet
#

i might just check if its undefined and return false if it is

odd heath
frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

hollow musk
limber skiff
#

generate the variable names

#

I dont understand why you are asking so much about it

#

look at the existing code for the plugin and you will realize no variable names is being hardcoded

#

which means for visual refresh it should do the same

hollow musk
#

wait so i need to modify this part to add the style but not use the variable names and instead use the actual variables in the function right?

fossil inlet
jolly egret
#

can i pay just the merge without any review

austere talon
#

yes

#

it's an all inclusive option

jolly egret
#

yeah but i want just the merge no review i want to merge malware

glass jasper
#

How much money to just be given push access to Vencord for five minutes

austere talon
#

NOP

rugged spire
shut vineBOT
#

@rugged spire, <t:1737775575:R>: pr this mess

rugged spire
#

later

hollow musk
#

how do i check whether visual refresh is enabled or not?

fossil inlet
#

you did that in your orig css

#

just wrap with .visual-referesh (or what ever the class name is

hollow musk
#

yeah but like wouldnt it be better if it injects if visual refresh is enabled instead of just injecting it whether or not it is enabled?

rugged spire
#

not really????

fossil inlet
#

no

hollow musk
#

damn, so no difference in terms of performance?

#

(like i said, i have no idea what im doing and im slowly learning)

fossil inlet
#

generating the css is quick and only happens once

#

if you generate based on if its enabled, you would have to somehwo listen for when its changed

#

and re-generate

#

and if you didnt, people could think client theme is broken when they toggle the experiment

rugged spire
#

the .visual-refresh class is already done for you

fossil inlet
#

@hollow musk tbh if you dont do something within a few days, do you mind if it do it (ill credit you)

rugged spire
#

you may also like :root:not(.visual-refresh)

hollow musk
fossil inlet
hollow musk
#

?remindme 5d if you didnt finish the fix, tell @fossil inlet to make it

shut vineBOT
#

Alright @hollow musk, in 5 days: if you didnt finish the fix, tell @/home/meow to make it

shut vineBOT
#

@fossil inlet, <t:1737694115:R>: bump a random pr

limber skiff
#

why is it lazy 😭

fossil inlet
dusk blaze
#

because sadan is lazy

austere talon
#

don't use lazy one horror

#

lazy is meant for when you need to await a promise (it shows a loading spinner in the context menu)

#

aka lazy loaded context menus or context menus that need to fetch stuff

#

if you don't have an await you want to use the normal one

fossil inlet
rugged spire
#

i've had to implement a lazy context menu and i didn't know thats how the context menu spinner worked

shut vineBOT
#

@rugged spire, <t:1737862048:R>: pr this mess

rugged spire
#

do i make horror merge conflict later or ??

#

shove it into my existing PR?

hollow musk
#

the more that i look at this, the more i wonder whose ass discord pulled the percentages from

rugged spire
#

Welcome to Discord CSS

hollow musk
#

so i made a graph of them

#

fucking party poopers, i cant even say they are a logarithmic expression now

hollow musk
#

like i cant even vouch for the devs, why is it like this

fossil inlet
hollow musk
charred monolithBOT
scenic brook
#

I wondered why my quickcss kept turning itself off every restart

hollow musk
limber skiff
#

@scenic brook thank you for using dev and testing lmao

scenic brook
limber skiff
#

I think you should put that in the else though

#

to not fire multiple times globally for plugin settings change

scenic brook
#

Yeah I thought that might be the case but I didn't know if it was important for it to be fired for both pathStr and settingPathStr

#

I'll change in a little bit

limber skiff
#

pathListeners should fire for both as they only fire if there are actually callbacks that exist

#

but globalListeners should only fire once

scenic brook
#

Okay cool

#

Done

charred monolithBOT
limber skiff
#

thankss

long stream
#

vencord has about as much testing as discord /j

austere talon
#

I literally said we should merge this into dev only and wait a few days to find bugs

limber skiff
#

should Option.CUSTOM be changed from any, rn it allows stuff like RegExp lmao

austere talon
limber skiff
#

hmm alright

austere talon
limber skiff
#

yep

jolly egret
#

wanna get my other PR in :3

charred monolithBOT
long stream
#

@austere talon don't push yourself too hard pls

austere talon
#

@fossil inlet for ur ShowConnections pr, did you understand what I suggested? (editing the Slider settings component to allow plugins to specify they want full ints)

#

I can make that change if you don't wanna do it

austere talon
#

gonna do a 24h twitch charity livestream where u can use channel points to redeem PR reviews

long stream
#

😭

odd heath
#

ill just tier 3 sub to get mosdt points trol

austere talon
#

shit is SO MESSY

long stream
#

xd

austere talon
#

what just adding new code on top of existing code for 2 years without ever refactoring it does to a codebase

fossil inlet
austere talon
#

oh all good no rush, take as much time as needed

#

Just making sure we're on the same page

dusk blaze
#

you should start selling pr reviews @austere talon

#

and guaranteed merges

#

you’d have to pay monthly to keep the plugin in vencord

fossil inlet
#

Also, do you want me to change the name Discriminate to something else? I just used it because that's what I copied from another project of mine

austere talon
#

no i was just joking 😭

#

although

#

if the name could better describe the function sure

#

Discriminate doesnt really say a lot

fossil inlet
#

Its called a discriminated union blobcatcozy

limber skiff
#

at least the rest which is not patchWebpack lmaoo

limber skiff
jolly egret
#

cool

limber skiff
#

I forgot about it yesterday mbbb

#

I remembered earlier today blobwob

#

but then I havent got to do stuff yet

charred monolithBOT
jolly egret
frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

fossil inlet
#

@austere talon did discord push an update where you can see invisible users?

fossil inlet
median rapids
#

it's a bug on vencord's side

granite wharf
#

vencord creep update...

charred monolithBOT
austere talon
median rapids
#

no idea what causes it tbh

charred monolithBOT
dusk blaze
#

reviewmaxxing…

median rapids
austere talon
#

UR CODE IS SO HORROR NINO

#

bro

#

you never unsubscribe 😭

#

after using ur panel a bit there will be 200 subscriptions

dusk blaze
#

guhh i quickly made this because some idiot was willing to pay

#

i will fix my shitcode

austere talon
#

lmaoo

fossil inlet
# charred monolith

@austere talon not really a better parch for this. IIRC it's matching a call from another module amongst another call exactly like it

||I could be misremembering or discord could have changed code since then||

limber skiff
median rapids
#

v cooking

charred monolithBOT
austere talon
#

omg

#

wrong thing lol why is git so dumb

#

it pushed to the wrong place

median rapids
#

not git issue blobcatcozy

charred monolithBOT
austere talon
#

i did gh pr checkout 1234

#

normally it should set up the branch correctly but it didnt

median rapids
#

real

austere talon
#

idk why it's acting up on this pr

charred monolithBOT
austere talon
limber skiff
#

I'm bed rn

#

(me but not angry)

austere talon
#

silly

limber skiff
#

I saw the emoji and didn't realize it was angry lmaooo

fossil inlet
#

love old prs blobcatcozy

rugged spire
#

and not suck

fossil inlet
#

what plugin uses date picker

austere talon
rugged spire
#

nothing

#

afaik

#

it's just a new possibility blobcatcozy

fossil inlet
#

husk

rugged spire
#

also so many changes

austere talon
fossil inlet
#

cant you just serialize date as string

rugged spire
#

so many good features

austere talon
#

so PRs wait less

rugged spire
fossil inlet
#

so they dont get lost in the sands of time

fossil inlet
#

gh issue?

rugged spire
#

irccolors is neat

fossil inlet
#

yea

#

esp for people who use compact mode

#

(they're crazy)

rugged spire
#

i might actually play around with what could be changed though

#

also overrides would be neat

austere talon
#

fix the things I mentioned

rugged spire
#

what things?

austere talon
rugged spire
#

rolecoloreverywhere?

#

yop i found it

austere talon
#

on the irccolors pr

#

my comment

rugged spire
#

its hsl

fossil inlet
#

god this is the best thing ive ever added to vencord companion

#

so nice

austere talon
#

you just need to intregate the plugin with RCE

#

maybe edit RCE

rugged spire
#

i will come back to this later

glass jasper
rugged spire
fossil inlet
austere talon
#

why did you edit the copy function 😭

fossil inlet
#

why show a checkmark when you cant copy

austere talon
#

that case should never happen because you would have to use some insane browser to even get that

fossil inlet
#

then does it even matter 😭

rugged spire
fossil inlet
#

revert if you dont like it that much

fossil inlet
charred monolithBOT
#

Discord Account

sadan

What happens when the bug or crash occurs?

the context menu does not have the expected items

What is the expected behaviour?

the context menu to have the expected items

How do you recreate this bug or crash?

  1. open modal
  2. right click role
  3. notice items missing

Errors

N/A

Image

![Image](https://github.com/user-attachments/assets/c524cd3e-ad64-4d78-8e0c-5...

charred monolithBOT
hollow musk
#

not sure if yall know this, but better folders sidebar doesnt really add itself to the right place in visual refresh (it should be under sidebar_a4d4d9 but it is under base_a4d4d9 instead. i looked at the code, i have no idea how it works, so im leaving this here for any of yall to fix (i was planning to fix this and add to my PR, but nevermind)

fossil inlet
shut vineBOT
#

Alright @fossil inlet, in 3 days: look into this

charred monolithBOT
#

Uses some diabolical themeing to fix ClientTheme not working while Visual Refresh is enabled
I can't find a proper curve to plot points and get better Lightness percentages (linear increase made it more flatter than it originally was with discord's wonky ahh curve
), so until then this is what is available

I haven't added my name to the Plugin Authors because I remember somewhere stating that the name can ...

inland timber
#

Is there a way to open vencord's settings page, plugins page, etc, via code?

sort of working on something to combine all discord mod clients together and I want to put their settings in a single unified location instead of cluttering the settings page which can also cause incompatiblities with how each mod adds their own settings menu to the panel

hollow musk
inland timber
#

33
(I already have it working)

austere talon
#

you're insane

#

anyway look how the update notification does it when u click it

glass jasper
inland timber
glass jasper
hollow musk
austere talon
#

if you want to combine multiple mods you will have to patch their code to make them compatible lol

#

Vencord and BD are incompatible

inland timber
inland timber
hollow musk
#

no way

glass jasper
inland timber
#

literally perfect out of the box working

hollow musk
glass jasper
hollow musk
#

@inland timber the point still stands, why.

fossil inlet
austere talon
#

anyway this is off topic to this channel wires

inland timber
# glass jasper actually Vencord and shelter are

shelter, vencord, bd
are the most compatible ever period.

everything works perfectly out of the box
actually wait BD needs their win32 thingie removed but that's optional and more of a platform thing

austere talon
#

and take ur meds cause no one asked for this

inland timber
hollow musk
glass jasper
hollow musk
#

chat i think this guy needs some actual medication, he is beyond saving

inland timber
inland timber
hollow musk
#

hewillnever hedid
ahh moment

#

wait also is it a vencord issue or vesktop issue that the nav bar (which has the minimize, maximize and close button) to not show up while having visual refresh?

toxic forge
#

ai

austere talon
#

you guys are giving me a headache

#

hop into a different channel before I kill myself

hollow musk
#

8x^3 + 15x^2 - 22x - 15

#

I'm sorry i just had to do it

inland timber
#

🀯
amazing code (i actually enjoy math)

hollow musk
#

why would anyone hate it

scenic brook
#

Immediate feedback that your regex is shit suffoChefKiss

#

This plus diff view are op

#

Also this because I always forget when working in native

astral bone
#

How do you even solve

hollow musk
scenic brook
#

This is how people lose channel access

hollow musk
#

my bad

limber skiff
fossil inlet
#

isnt replugged EOL

limber skiff
#

nop

austere talon
#

sadly no

limber skiff
#

but replugged does async stuff everywhere and they have all sort of race conditions with webpack finds, patching and even with discord own lazy chunk loader (at least used to have this one)

austere talon
#

i wonder if they found the cause yet

limber skiff
#

adding replugged is almost asking to have race conditions and a lot of crashes/plugins not working

limber skiff
austere talon
#

not merged lol

#

that means it took them this long to find it

#

meanwhile we found it in like 10 minutes trol

limber skiff
#

90 files changed lol

austere talon
#

i still dont understand the async spam they do

#

i love await getReact

austere talon
limber skiff
limber skiff
austere talon
#

half of the diff is just him rewriting the renderer code to not use top level await everywhere lmfaoo because that's esm only

jolly egret
#

will become faster Clueless

limber skiff
#

I kinda understand a bit why it's async

#

cuz gotta load plugins from files and stuff and they didn't want blocking

austere talon
#

ya but u dont gotta make the entire webpack stuff async for that 😭

limber skiff
#

but basically attempting to mess up with webpack and turn it async

#

that would never work well

#

webpack even has it's own function for esm modules with top level await

#

cuz obviously that needs special handling

charred monolithBOT
scenic brook
#

It's embedded fine for me

fossil inlet
#

Husk

limber skiff
#

@austere talon couldnt this just hash from xxhash64 instead

austere talon
#

tias

limber skiff
#

what does tias mean

#

πŸ˜›

limber skiff
#

oh lol

#

it worked

#
  1. You might be breaking the Rules of Hooks
#

I broke the rules of hooks

limber skiff
#

can I really not call a hook from here

austere talon
#

nop

limber skiff
#

it is inside the context of rendering tho?

austere talon
#

they probably call ew()

#

instead of using proper react call

austere talon
#

trolled

limber skiff
#

alright there we go

charred monolithBOT
#

87cb1fd Fix top level settings notifying global listene... - lolsuffocate
cf28c65 Add IrcColors plugin (#2048) - jedenastka
f29662c feat(ViewRaw): add View Role option (#3083) - vishnyanetchereshnya
3350922 LastFmRPC: Add option to hide if there is anoth... - Vendicated
c4f8221 IrcColors: Make lightness apply without restart - Nuckyz

limber skiff
#

Keep in mind this overrides role colors in chat, so if you wish to know
someone's role color without checking their profile, enable the role dot: go to
User Settings, Accessibility and switch Role Colors to Show role
colors next to names
.

#

someone made this pr to make color dot reflect it

#

hmm

charred monolithBOT
austere talon
granite sky
#

Also i've just noticed small issue about my pr: it does changes color text, but doesn't reflect on mentions ( when using role colors everywhere)

limber skiff
#

shit is exploding im trying to work on it

limber skiff
#

this proxy memo just doesnt work right idk why

wrapMessageAuthor(userId: string, messageAuthor: any) {
        const colorString = useMemo(() => calculateNameColorForUser(userId), [userId]);

        const proxy = useMemo(() => {
            return new Proxy(messageAuthor, {
                get(target, prop, receiver) {
                    if (prop === ORIGINAL_COLOR_SYM) {
                        return Reflect.get(target, "colorString", receiver);
                    }

                    if (prop === "colorString") {
                        return colorString;
                    }

                    return Reflect.get(target, prop, receiver);
                }
            });
        }, [userId, messageAuthor]);

        return proxy;
    },
granite sky
limber skiff
limber skiff
#

to get original color for role dot

austere talon
#

why

#

the role dot should also have the IrcColors color

austere talon
granite sky
#

If i make something like this ( needs conversion from hsl to hex ) how many husks of huisk it will get?

I've seen a long time ago that no one should modife stores since discord relies on it

limber skiff
#

u should pull dev

granite sky
limber skiff
#

make a new branch

#

then git merge upstream dev

#

or better

#

reset to dev

#

git reset upstream dev

austere talon
#

and change base branch to dev

#

then press the button on github

granite sky
austere talon
#

then click update branch

#

and then run git pull locally

granite sky
#

oh, wait

limber skiff
#

vs dev

#

vtest dev

nimble pendantBOT
fossil inlet
#

what version of react does discord use

frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

austere talon
#

React.version

frail skyBOT
#
Bad Patches

PermissionFreeWill (had no effect):
ID: 156699
Match: ```
/{(\i:function(){return \i},?){2}}/


**__ConsoleJanitor (had no effect):__**
ID: `173840`
Match: ```
/(?<=&&\()console.log\(`Deprecated.+?`\),/

ChatInputButtonAPI (had no effect):
ID: 258696
Match: ```
/return(!\i.\i&&(?=(\i.isDM.+?(\i).push(.{0,50}"gift")/


**__IgnoreActivities (had no effect):__**
ID: `293273`
Match: ```
/HANG_STATUS.+?(?=!\i\(\)\(\i,\i\)&&)(?<=(\i)\.push.+?)/

ShowTimeoutDuration (had no effect):
ID: 464891
Match: ```
/(\i).Tooltip,{(text:.{0,30}(?:.AeYyLy)))/


**__ShowHiddenChannels (had no effect):__**
ID: `557135`
Match: ```
/(?=&&\i\.\i\.selectVoiceChannel\((\i)\.id\))/

iLoveSpam (had no effect):
ID: 598077
Match: ```
/if((\i)<=(?:1<<30|1073741824))return/


**__MentionAvatars (had no effect):__**
ID: `644956`
Match: ```
/children:\[\i&&.{0,50}\.RoleDot.{0,300},\i(?=\])/

OpenInApp (had no effect):
ID: 952164
Match: ```
/!(0,\i.isDesktop)()/


**__BetterSettings (had no effect):__**
ID: `493544`
Match: ```
/\(0,\i\.useTransition\)\((\i)/

Settings (had no effect):
ID: 991346
Match: ```
/({(?=.+?function (\i).{0,160}(\i)=\i.useMemo.{0,140}return \i.useMemo(()=>\i(\3).+?function(){return )\2(?=})/


**__ShowHiddenChannels (had no effect):__**
ID: `473403`
Match: ```
/(?<=\.wrapper:\i\.notInteractive,)(.+?)if\((\i)\)return (\i\.MUTED);/

ShowHiddenChannels (had no effect):
ID: 473403
Match: ```
/.LOCKED;if((?<={channel:(\i).+?)/


**__BetterFolders (had no effect):__**
ID: `179809`
Match: ```
/(?<=(?:\.xV9hVl).+?useTransition\)\()/

ShowHiddenChannels (had no effect):
ID: 424785
Match: ```
/!(\i).isRoleSubscriptionTemplatePreviewChannel()/


**__ViewIcons (had no effect):__**
ID: `217314`
Match: ```
/.Avatar,.+?src:(.+?\))(?=[,}])/

ViewIcons (had no effect):
ID: 753898
Match: ```
/.Avatar,.+?src:(.+?))(?=[,}])/


**__ImplicitRelationships (had no effect):__**
ID: `270759`
Match: ```
/(\(0,\i\.jsx\)\(\i\.TabBar\.Item,\{id:\i\.\i)\.BLOCKED,className:([^\s]+?)\.item,children:\i\.\i\.string\(\i\.\i(?:\["4bDptL"\])\)\}\)/

CtrlEnterSend (found no module):
ID: -
Match: ```
.ENTER&&(!


**__FakeNitro (found no module):__**
ID: `-`
Match: ```
.PREMIUM_LOCKED;

MessageLogger (found no module):
ID: -
Match: ```
useMessageMenu:

Bad Webpack Finds
waitFor("FormItem", "Button")
waitFor("MenuItem", "MenuSliderControl")
findByProps("ModalRoot", "ModalCloseButton")
findByProps("openModalLazy")
proxyLazyWebpack(()=>zr.openModalLazy...)
proxyLazyWebpack(()=>zr.openModal...)
proxyLazyWebpack(()=>zr.closeModal...)
proxyLazyWebpack(()=>zr.closeAllModals...)
findExportedComponent("BlobMask")
findByProps("useMessageMenu")
findComponentByCode("Button.Sizes.NONE,disabled:")
findExportedComponent("HiddenVisually")
find(e=>e.Types?.[0]==="BOT"...)
findExportedComponent("ColorPicker", "CustomColorPicker")
findByProps("useStatusFillColor", "StatusTypes")
findExportedComponent("Dots", "AnimatedDots")
findComponentByCode(".AvatarSizeSpecs[", "getAvatarURL")
Bad Starts

None

Discord Errors

None

limber skiff
#

...

austere talon
#

what did they cook

fossil inlet
#

WHAT

limber skiff
#

mangled everything again

fossil inlet
#

@limber skiff is this the big component module again

austere talon
#

Components module kill

fossil inlet
#

i have a feeling they wont revert this time

grizzled halo
limber skiff
austere talon
#

oh

jolly egret
#

doomed

fossil inlet
sterile oak
austere talon
fossil inlet
#

so someone should prob make known issues post ( @jolly egret )

jolly egret
#

i'm eating

limber skiff
#

I have these fixes already

austere talon
#

theyre gonna revert bro

limber skiff
#

that's from a squash

austere talon
#

oh old

jolly egret
#

haven't they pushed this same mangling multiple times now

limber skiff
#

remember I was trying push a fix to not depend on non mangled stuff

limber skiff
#

and had the DOMTokenList issue

austere talon
fossil inlet
#

@austere talon even if they revert, support helper should be done in a way where it doesnt crash, even when finds fail

austere talon
#

yes

austere talon
#

I suggested in the past that we make a mode where it deliberately breaks all webpack finds

#

so we can find crashes

#

we should do that

fossil inlet
#

yea, thats been in the back of my mind for a while

#

im busy rn, but if a few hours ill start fixing stuff if needed and they havent reverted

odd heath
#

What did they do???

austere talon
#

they cooked

#

(probably will revert)

odd heath
#

Yeah

austere talon
#

why the fuck does this crash (cannot read properties BOT of undefined (so r.Z.Types is undefined)

#

why is r.Z.Types undefined

#

it's MoreUserTags that causes the crash btw

limber skiff
#

how to properly type this here

#

I'm not sure if there is a way to infer this

austere talon
granite sky
#

Is there some analog of useMemo that doesn't utilize hooks?

austere talon
#

MoreUserTags just needs a rewrite I already said this last time and it wasn't done

#

that plugin is so dangerous

odd heath
austere talon
#

because it always causes crash

#

its patches are written in a way that makes Discord crash if anything changes

odd heath
#

h

#

OH HUSK

austere talon
#

so many patches to different modules that depend on one another and aren't stable even on their own

jolly egret
#

incredible

austere talon
#

it makes a discord module return early and export undefined

#

so Discord's own code causes crash because it's reading property of undefined

sterile oak
austere talon
fossil inlet
#

love

limber skiff
#

plugin def

austere talon
#

i will delete MoreUserTags for now

#

we need to rewrite it, then we can add it back

fossil inlet
# limber skiff

intersection with ThisType<MyType> or (this: MyType, ...args: any) => void

#

why husk?

#

seriously

austere talon
limber skiff
#

I guess

austere talon
#

it's username or smth

limber skiff
#

but is it not easy to fix for now

austere talon
#

and we dont even want to fix it for now

#

but we dont want stable to crash

limber skiff
#

in the future, not now πŸ˜›

charred monolithBOT
limber skiff
#

I did this before

#
const Tag = findComponentByCodeLazy("#{intl::DISCORD_SYSTEM_MESSAGE_BOT_TAG_TOOLTIP_OFFICIAL}") as RC<{ type?: number, className?: string, useRemSizes?: boolean; }>;
const TagTypes: Record<string, number> = findByPropsLazy("ORIGINAL_POSTER", "REMIX");
sterile oak
# limber skiff

uh why are you trying to use this? u should return a Element

limber skiff
#

ik

fossil inlet
#

what other plugins are crashing (nothing is for me rn)

sterile oak
#

okay. me sleep now gn blobcatcozy

limber skiff
#

gn

charred monolithBOT
austere talon
#

that's antipattern you shouldn't use this there

limber skiff
#

hmm

austere talon
fossil inlet
#

@austere talon should message accessories all be noops

#

they take up a lot of space in chat if they arent

austere talon
#

why doesn't this work am i stupid

fossil inlet
#

(the error boundaries)

limber skiff
#

according to cynthia stuff isn't mangled, but not exported in the common module anymore

fossil inlet
limber skiff
austere talon
#

i use vesktop

limber skiff
#

oh

#

that should still work then

fossil inlet
#

i use build --reporter --dev on vesktopp

austere talon
#

right vesktop is considered desktop

#

i may be stupid

#

holy fucking lag

#

oh theres crash when right clicking

#

chat bar

#

but thats fine

#

should we push to main?

#

it will make sure people wont get crash if they push to stable

limber skiff
#

ig

#

the other changes should already be good to go

#

they have been in dev for a while now

austere talon
#

let me do some tests

limber skiff
#

ugh we should really stop relying on anything that's not mangled

#

so stupid

#

always causes issues at some point

austere talon
#

it's fine

limber skiff
#

not really

granite sky
#

uggh
if you decide to push to main, can someone review my irccolors pr? So users have all benefits of it
i've made it working

austere talon
#

i will just push main for now

granite sky
#

okay venniecozycat

austere talon
granite sky
#

Than i'll take a look what i can do for MoreUserTags

fossil inlet
austere talon
#

i fixed that already

austere talon
limber skiff
austere talon
#

bro my local clone is so fucked

charred monolithBOT
austere talon
#

nvm just goofy git behaviour

#

the past 2 days i've had so much weird behaviour

limber skiff
#

17 commits

#

lmaooooo

austere talon
#

i was so confused

#

but remember one of the commits is a merge commit

#

I have merge strategy set to rebase

So it automatically removed the dev merge commit and changed it to rebase

#

confused me so much for a bit

limber skiff
#

oh lol

austere talon
#

wtf is purp

#

did you just add that or am i insane

limber skiff
#

i did

austere talon
#

i saw you change colour in real time

limber skiff
#

I remembered about the cotd color of some days ago which was this one

#

oh yeah userplugins users will cry now

#

and forks too

austere talon
#

good timing

#

assuming discord pushes this to stable

median rapids
limber skiff
#

what are they changing...?

fossil inlet
#

reporter randomly wont load for me with this being spammed in the console

limber skiff
#

rate limit?

fossil inlet
#

it just randomly doesnt

fossil inlet
limber skiff
#

that huge module basically re-exports with non mangled names

fossil inlet
#

yea

limber skiff
#

they were always exported mangled in another place (for most)

#

not the case for useMessageMenu though

fossil inlet
#

@limber skiff should i just start fixing patches or are we going to see if they revert

median rapids
#

they need every % they can get

austere talon
#

they have so many easy ways to minify their code 😭

#

instead they do insane bundler shit

scenic brook
#

Just put less code in there suffoBigBrain

long stream
median rapids
#

this is client-side savings

#

don't be silly

long stream
#

doubt

#

it can't be anything other than storage costs especially since they're trying to maximize profit right now

median rapids
#

?????????????

#

😭

glass jasper
long stream
median rapids
#

ur logic makes zero sense lmao

scenic brook
#

They're not minifying their own codebase lol

long stream
#

when did i say it was the actual codebase 😭😭

scenic brook
#

How else would it save them storage

long stream
#

they don't pay for git storage