#๐Ÿ‘พ-core-development

1 messages ยท Page 186 of 1

crude hearth
#

Yop

charred monolithBOT
#

4f2c2b8 new plugin Summaries: show Discords AI-generate... - mantikafasi
c836270 fix minor bugs in various plugins - Vendicated
9ec6718 build: improve fileInclude plugin - Vendicated
41c5bbd new plugin WatchTogetherAdblock: block ads in y... - ImLvna
58d9619 Summaries: Fix start error with no summaries-da... - Nuckyz

limber skiff
#

how did I confuse "if" with "with"

charred monolithBOT
limber skiff
#

this is funny

charred monolithBOT
#

PR Code Suggestions โœจ

<table><thead><tr><td>Category</td><td align=left>Suggestionย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  &nbsp...

charred monolithBOT
charred monolithBOT
charred monolithBOT
jagged cloak
#

(but why)

#

one cant possibly be fat finger control and R that much right

rugged spire
#

have you ever done it with control q

#

automod insane

jagged cloak
#

no because i use desktop lol

#

windows

rugged spire
#

insane

austere talon
#

trying to open emote picker (ctrl + e)

rugged spire
jagged cloak
#

lool damn

charred monolithBOT
jagged cloak
#

github ate the lines i selected

nimble plaza
#

(thank you whoever got it working again >w<)

austere talon
nimble plaza
austere talon
#

speaking of which you still have another pr with unresolved feedback (banners everywhere) if u wanna finish that

nimble plaza
#

oo okay !

#

still works this time :3

#

ill fix it tomorow

austere talon
#

and yeah i'm trying to get old stuff merged but its a veeeeery long backlog

#

its pain cause every time i merge 10 prs, 10 new ones get made ๐Ÿ˜ญ

#

i did like 40prs on one day fairly recently, dropping prs to 140, then later even more getting them down to like 120 but now we're at 132 again

limber skiff
#

and me doing refactors doesn't make it easier lol

shell shuttle
austere talon
#

inb4 this is some really cursed css thing

charred monolithBOT
sterile oak
charred monolithBOT
jagged cloak
#

some ppl rlly just want a contrib badge or sm

sterile oak
jagged cloak
#

why do i bother

#

(i am bored)

also zero effort went into making that its literally one glance to tell everytime NAHHH

charred monolithBOT
charred monolithBOT
charred monolithBOT
jagged cloak
#

horror

#

they will add token logger

somber thorn
#

but make it send to my server

charred monolithBOT
charred monolithBOT
charred monolithBOT
rugged spire
#

java reference

dusk blaze
charred monolithBOT
austere talon
#

tbf dom manipulation is fine for that

turbid hatch
#

^ tested, works fine

#

and the only blocker was the js -> txt

#

wuh oh

#

why did that fail to compile

#

wtf

#

literally compiled it on my machine fine

austere talon
#

i think the patches could use some improvement tbh

turbid hatch
#

oh was it the rebase dev

turbid hatch
#

we can rework the patches separately

austere talon
#

wdym

turbid hatch
#

the PR accomplishes the whole custom quotes thing

charred monolithBOT
turbid hatch
#

woah hello

turbid hatch
austere talon
#

wdym

#

these patches are not good

turbid hatch
#

oh i thought you were fine with it because it wasnt pointed out in review

#

:p

#

i need to fix the filecontent stuff anytway

#

ah i see it was changed quite literally 24 hours ago

#

i see

#

btw are we using codium now as like

#

a proper thing

#

or just on one offs

austere talon
#

it sucks ass it was just as a joke lmao

turbid hatch
#

actually

#

why were the patches changed like that

#

im confused

#

they seem way more complicated than they need to be

#

am i silly for thinking that or

#

oh >enableDiscordPresetQuotes

#

i see

#

okay lets see what i can do here

austere talon
#

im fixing them rn :p

turbid hatch
#

o okie

#

ill stop tinkering then xd

jagged cloak
austere talon
#

there

#

i did

jagged cloak
turbid hatch
#

im now going to go explode because i almost merged that PR

jagged cloak
#

fat fingered buttons count

austere talon
#

this is also safer cause it doesnt reassign the variable

#

so if they ever change it to const it wont error

turbid hatch
#

fair

#

i will now go plan magnolia instead

austere talon
#

xd

charred monolithBOT
#

the patches were kinda bad for the following reasons, thus I changed them:

  • reliant on the current easter egg that might get removed at any time
  • reassigning the variable which might be made a const in the future. the plugin now mutates the array in place
  • just generally using fixed length anything matchers is best avoided

but the rest is good now so I'll go ahead and merge this, thank you for your work!!

jagged cloak
#

(no)

somber thorn
#

really no.

charred monolithBOT
austere talon
#

STOP OPENING PRS

charred monolithBOT
rugged spire
austere talon
#

need somebody to make a "STOP DOING PRS" meme

you know those graphics

rugged spire
#

I have at least 5 finished plugins that I just never ended up submitting

austere talon
rugged spire
#

i can't wait to submit a PR and get a reply saying "FUCK OFF"

rugged spire
#

Please choose your preferred method of harrassment

#

lol why do i still have this branch

#

i should bomb it

#

feature exists in upstream since i made it

#

fuck off devs list merge conflict

spark pivot
rugged spire
#

will just merge dev branch

somber thorn
spark pivot
#

real

#

star this one not the other one

charred monolithBOT
charred monolithBOT
#

i was suggesting that instead of doing this, you just patch the memberlist row component to insert your own hook call that subscribes to the user profile store and fetches profile if missing

this will then automatically rerender the component when the user profile has eventually been fetched, and Discord's lazy scroller already makes it so that only visible users will be rendered

like

"$self.useFetchMemberProfile($1)"

useFetchMemberProfile(userId: string) {
	const profile = ...
spark pivot
#

uh oh we need to get this pr fixed guys

#

dont want to disappoint Nonstopgaming75

charred monolithBOT
austere talon
#

idk xd

nimble plaza
#

lmao

#

ill just leave it out for now

#

pushed all my changes

austere talon
#

.GUILD_PROFILE(

#

oh its just profile update

#

i would assume guild profile is always cached or smth

#

actually idk

#
await (0,
            r.fetchProfile)(e, {
                withMutualGuilds: T,
                withMutualFriends: S,
                withMutualFriendsCount: f,
                friendToken: h,
                guildId: N,
                connectionsRoleId: c,
                abortSignal: O
            }, U)
limber skiff
#

but I guess it doesnt account for the cache when requesting

#

so you need to check the store, and cache if empty

#

oh

#

oops

charred monolithBOT
charred monolithBOT
limber skiff
#

this is like almost impossible to happen but why not

charred monolithBOT
charred monolithBOT
charred monolithBOT
frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
charred monolithBOT
austere talon
#

how so fast

#

xd [] || undefined is still []

#

did u test that it still works

#

i cant exactly test it cause u know...

#

thanks for the swift fixes btw apple

charred monolithBOT
limber skiff
#

codium agent kinda dumb

#

bro missed the try catch on top

glass jasper
austere talon
jagged reef
#

Fixed all ShowBadgesInChat issues

#

@glass jasper is updating it now

austere talon
#

ADD FILES VIA UPLOAD

#

HORROR

austere talon
jagged reef
austere talon
#

wdym

#

just pr to their fork or have them invite u xd

jagged reef
#

so I can't commit to the PR

austere talon
jagged reef
#

new longest username in chat lmao

charred monolithBOT
sterile oak
charred monolithBOT
austere talon
#

hmm yes foo.includes(foo) blobcatcozy

charred monolithBOT
jagged reef
charred monolithBOT
glass jasper
#

My computer is hard-core bugging right now so I donโ€™t know what is happening

glass jasper
charred monolithBOT
#

you use optional chaining here, which could potentially result in author being undefined, however the above functions expect a non null user and don't do any null safety

that makes very little sense! you should either remove this optional chaining if you're sure the author always exists

        addDecoration("vc-show-badges-in-chat", props => <ChatBadges author={props.message.author} />);

or, safer, make sure it always exists

        addDecoration(...
jagged reef
#

all fixed

glass jasper
charred monolithBOT
median rapids
#

oh

charred monolithBOT
sterile oak
#

the source of my bugs:

#

I always forget that [] is always truthy

charred monolithBOT
charred monolithBOT
glass jasper
#

@jagged reef ok everything should be fine now and fixed

spark pivot
still wasp
sterile oak
#

whgar??

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
charred monolithBOT
charred monolithBOT
#

It adds the /uwuify command that just makes your message more "cute" based off of a long word and letter replacement list and some suffixes.

It does not have any super special characters in the suffixes or replacements so it shouldn't get automodded in some servers with those "English only" automods.

What it looks like:

UwUify in action

Some options for it:

(sorry for it bei...

charred monolithBOT
limber skiff
#

I'm really thinking my two prs are in a very final stage

#

can't see much changing now

sterile oak
#

should this show up on default emojis?

limber skiff
#

are you up to date?

sterile oak
#

oh. nvm, I didn't update...

charred monolithBOT
desert cosmos
dusk blaze
shell shuttle
#

when the webhookmanager

shell shuttle
#

should add something for that

charred monolithBOT
austere talon
#

nom nom

austere talon
austere talon
shell shuttle
somber thorn
somber thorn
charred monolithBOT
turbid hatch
#

^ you'd have to include a separate math interpreter for this to be secure and at that point it would just bloat the mod considering how niche it is

somber thorn
#

tbf it is clientside only and it has whitelisted only Math garbage

#

but I agree

turbid hatch
#

id rather not have a hidden eval command

#
  • you can sandbox break out of that in many different ways and get access to the client
charred monolithBOT
turbid hatch
#

๐Ÿค

charred monolithBOT
austere talon
#

i will start just rejecting any slash command thing that can also be done with a user app

charred monolithBOT
charred monolithBOT
charred monolithBOT
dusk blaze
#

you will either use svg or data url

charred monolithBOT
charred monolithBOT
#
[Vendicated/Vencord] New branch created: console-shortcuts-autocomplete
austere talon
austere talon
# austere talon

but this has one issue @limber skiff

it won't work the first time cause it's not loaded, need to load first

rugged spire
austere talon
#

maybe we could force load all commons when you open devtools?

also let me know if the code looks good if you would do anything differently

rugged spire
#

i should add more consoleshortcuts

austere talon
#

i want to add ones for current channelId, guildId, userId, etc

#

tired of having to manually copy channel or guild id

rugged spire
#

YES

#

wait

#

You will add Vencord.Util as Util too blobcatcozy

#

i hate writing out Vencord.Util.getCurrentChannel().id

#

yeah i know Selected{Guild,Channel}Store exists

austere talon
#

you need to execute it once to load it

rugged spire
#

husk

austere talon
#

because chrome devtools wont call it

limber skiff
austere talon
#

thats what i do

limber skiff
#

oh

#

it's kinda horrible to see changed code in the phone lol

austere talon
#

but yeah the issue is that chrome only eager evaluates stuff that has no sideeffects

limber skiff
#

it's okay tbh

#

I mainly did this change to get reference to wreq as soon as possible

#

tired of having to wait for connection open lmao

rugged spire
#

insane

#

ok fine that is reasonable

#

why do you need to wait for that anyways

limber skiff
#

you don't

rugged spire
austere talon
#

your change isnt the issue

limber skiff
#

it's that just than when connection open is triggered you can be sure pretty much everything loaded

austere talon
#

i also do this here

limber skiff
austere talon
#

but basically nothing will be loaded at that point

limber skiff
#

yeah

austere talon
#

these arent loaded

limber skiff
#

wreq and some vencord stuff, mainly

austere talon
#

what we could do is eager load all modules when console is opened

limber skiff
#

what if you keep console open

#

and restart

rugged spire
#

i know this sounds stupid but is there any way of actually detecting that on web clients

austere talon
#

nop

#

well technically yes there is

#

and discord has code for it

rugged spire
#

technically yes

austere talon
#

but its not robust

rugged spire
#

how

#

how does discord do it blobcatnom

austere talon
#

there are many ways to do it

#

this works but only if you have them docked

#

not if u have popout

#

well web users will shrimply cope

#

the horror

limber skiff
#

horror

austere talon
#

cursed xd

limber skiff
#

it's really cool how that code gets stripped out if it's web

austere talon
#

Shortcut

#

im drunk

limber skiff
#

ohh that reminds me

#

you can open the devtools with electron

austere talon
#

yeaa

limber skiff
#

that might be useful

#

error boundary button for it

austere talon
#

the diff is so horror cause i moved the shortcuts function to top level

#

hmmm

#

this has some issues still

limber skiff
#

yeah ik how that is

austere talon
#

if you open devtools very early

limber skiff
#

(me)

charred monolithBOT
austere talon
#

easy fix

limber skiff
#

lmaooo

limber skiff
#

wtf

charred monolithBOT
limber skiff
#

do writable true when you define a value too

#

might wanna change for whatever reason

charred monolithBOT
austere talon
#

there we go

limber skiff
#

what's the reason for setTimeout 1000

austere talon
austere talon
#

cause they might load some more modules

limber skiff
#

oh

#

I see

austere talon
#

like

#

the point of that func is to unproxy already cached modules

#

if we do it immediately at webpack start it wont be any

#

but after 1s some might have gotten accessed

limber skiff
#

yeah

#

also idk we should probably rename that

#

it's not really webpack ready

austere talon
#

yeah kinda

#

its like discord loaded

#

wait isnt it literally connection open

limber skiff
#

yeah

#

and it does make sense for it to be connection open

#

because plugins may want to do gateway things in the start

#

if you want me to change let me know

#

it's better for me to do in my pr which already changes so much stuff

austere talon
#

naaah

#

the more changes u tuck into one pr the harder it gets to properly test & review xd

limber skiff
charred monolithBOT
limber skiff
#

you can have writable and get

#

(if you do use define when setting the getter

limber skiff
#

just a few renaming

austere talon
limber skiff
#

and it's better because that pr already touched most files, so why not change a little more of them haha

limber skiff
austere talon
#

you can

limber skiff
#

huh

#

is it setter that you can't?

austere talon
#

oh

#

youre right actually

limber skiff
#

I know for sure one of them you can't have at the same time as a writable

charred monolithBOT
austere talon
limber skiff
#

lmao the message

austere talon
limber skiff
#

yeah I saw that

#

it's so funny

#

okay give me a second I'm gonna make coffee and then I review/merge your pr

#

and fix my conflicts

austere talon
#

wait it still doesnt work

#

why

#

OH MY GOD WHY

charred monolithBOT
limber skiff
#

oh

#

yeah...

#

did you know about Reflect.defineProperty

austere talon
limber skiff
#

and doesn't throw an error

austere talon
limber skiff
#

put Vencord.Util on Util

austere talon
#

yop

limber skiff
#

I guess that's it

austere talon
limber skiff
#

also unrelated but should I export this

#

it's a set with wreq.m and sentryWreq.m

#

or I could change that to contain all the wreqs instead

#

i guess that can be useful

charred monolithBOT
austere talon
#

i do this so often xd

#

so i save 1 restart when testing plugins

#

what else could we add thats useful

limber skiff
#

that's smart

charred monolithBOT
limber skiff
#

I did something :)

austere talon
#

๐Ÿ˜ญ

limber skiff
#

okay let me fix this properly

#

blatantly copying you

odd heath
#

we need something for pronoundb where it hides this shit automatically

#

i dont feel like its worth making a pr for it tho

charred monolithBOT
austere talon
#

its ready now

#

unless anyone has more ids for new shortcutsd

limber skiff
#

let me just clean this up and I review

austere talon
#

BRO WHAT IS THIS EXAMPLE CODE

#
class B extends class A {
  set a(v) {
    console.log("Setter called");
  }
} {
  a = 1; // Nothing logged
}
#

๐Ÿ˜ญ

#

i was so confused and thinking it was invalid syntax

#

until i ran it and realised...

limber skiff
#

wtf is that?

#

why is it like that

austere talon
#
class B extends
  (class A {
    set a(v) {
      console.log("Setter called");
    }
  })
{
  a = 1; // Nothing logged
}
#

this should make it a bit more obvious

charred monolithBOT
limber skiff
#

wait that if is wrong

charred monolithBOT
limber skiff
#

oh fuck

limber skiff
#

security vulnerability incoming

#

just wait for it

austere talon
#

๐Ÿ˜ญ

charred monolithBOT
austere talon
#

๐Ÿ˜ญ it looks so scary too

limber skiff
#

yeah lmao

#

github is dying I can't dismiss it lmao

#

btw I finally used tagged templates again lmao

#

basically if any of the variables inside is == null it returns "" instead

#

any reason this is not camelCase

austere talon
#

ummm

#

easier to type

#

but yeah it probably should be xd

limber skiff
#

actually

#

forgot to the change the thing lol

charred monolithBOT
limber skiff
#

okay seems good

austere talon
#

btw i noticed that fakeRender doesnt work on discord desktop

#

but its not that easy to fix

limber skiff
#

I never used it

austere talon
#

its useful

#

you can call hooks with it and stuff

limber skiff
#

what's the issue on desktop

austere talon
#

thats mainly what i use it for

austere talon
limber skiff
#

I see

austere talon
#

or you can just check what a component looks like

limber skiff
#

nice

#

this is good

limber skiff
charred monolithBOT
limber skiff
#

okay lets hope for the best

charred monolithBOT
#
[Vendicated/Vencord] branch deleted: console-shortcuts-autocomplete
austere talon
limber skiff
#

oh

austere talon
#

with that change and a small adjustment to how we initialise the html it works in discord desktop

#

but then it doesnt work in vesktop anymore

#

so we first need to fix popouts in vesktop

limber skiff
charred monolithBOT
charred monolithBOT
austere talon
# charred monolith

it's because these properties are dictated by spec so proxy enforces them to properly correspond to the proxied element, so you can't break js spec

limber skiff
#

yep

#

crying

#

conflicts are always scary

charred monolithBOT
limber skiff
#

okay I hope nothing else got messed up

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

rugged spire
charred monolithBOT
rugged spire
#

hate github UI

limber skiff
rugged spire
charred monolithBOT
rugged spire
limber skiff
#

that's what happens when you dont rebase and force push

#

ugly merge commits

rugged spire
#

i love ugly merge commits

#

(i am insane)

austere talon
rugged spire
#

i have blobcatcozy it

#

i should start writing another plugin that nobody will use

austere talon
#

btw i came up with a way we can maybe update messages @limber skiff

limber skiff
#

did you see what I said about the research I did another time

austere talon
#

that they're memoed?

austere talon
limber skiff
#

how do we force a render like that

#

what function do we call

#

updateMessage?

austere talon
#

MESSAGE_UPDATE event

limber skiff
#

oh

#

I get it now

charred monolithBOT
limber skiff
#

I'll take a deeper look into it

austere talon
#

basically the entire reason we cant use MESSAGE_UPDATE is cause it fucks up embed

#

but now after looking into it, it's just sanitizeEmbed as described in those messages that does that

#

so if we noop that for the MESSAGE_UPDATE call, it should work fine

limber skiff
#

ideally we want something which doesn't depend on patching a single parsing

#

that's why I'm gonna take a deeper look

#

to see if that's doable

#

deep clone message obj, set prototype to the class, and then update message store with it?

#

just an idea idk

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
shell shuttle
spark pivot
charred monolithBOT
austere talon
#

Error: Execution context was destroyed, most likely because of a navigation.
at rewriteError

#

reprter explosion

#

somehow

#

its consistent broken somehow

#

but why

limber skiff
#

it broke rn?

austere talon
#

yes

#

but its not cause vncord broke

#

puppeteer error

#

its redirecting and that somehow breaks stuff

#

maybe issue with new chrome version

limber skiff
#

uhh I have news

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

my branch works

austere talon
#

what..

limber skiff
#

๐Ÿ˜ญ

austere talon
#

how

limber skiff
#

idk

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

I ran on immediate-finds-modules-proxy

austere talon
#

did u make any major changes

limber skiff
#

but my branch has that too

austere talon
#

but the error is so confusing

limber skiff
#

it's related to the JSHandles

#

remove this

#

and see if it works

austere talon
#

nah

limber skiff
#

odd

limber skiff
#

that's strange

#

something changed

charred monolithBOT
limber skiff
#

idk why my other branches work though

austere talon
#

maybe new chrome version

#

does ur branch have cached chrome

limber skiff
#

nah

#

it didnt change the workflow

#

only a bit of the script

austere talon
#

well its not a big deal for now

#

but we need to fix it sooon

#

why wuld it randomly break

#

it worked earlier

limber skiff
#

no idea

#

try to compare generateReport in my branch and main

austere talon
#

no the thing is

#

it wasnt updated in a week

#

it worked a few days ago

#

so literally we didnt change any code and it broke

#

well we did change some webpack code

#

maybe its consoleshortcuts change?

#

maybe ur branch doesnt have it yet

limber skiff
#

it does

austere talon
#

yeah but

#

urs changes how finding works

limber skiff
#

it has everything but the last 2 commits

austere talon
#

maybe its the eager loading somehow

limber skiff
#

unsure

#

I can try the reporter on dev later

#

i'm trying so hard to make the fucking message re-render

austere talon
#

IT IS

#

omfg

#

i deleted ConsoleShortcuts and its fixed

limber skiff
#

wait

#

yeah idk

#

my branch has it

austere talon
#

yeah but

#

your branch has immediate finds

#

my guess is that it's about the eager loading

limber skiff
#

eager finding you mean

#

not the eager patches

#

yeah maybe

austere talon
#

wait maybe i blew up web

limber skiff
#

lol that branch has two things, a option for eager patching and immediate finds

#

it's a combination of my two others with conflicts resolved

#

is your reporter exploding during finds checking?

#

anyways it's crazy, I got the main channel component that subscribes to the message store to update

#

but the single message is still not

austere talon
#

hmmmm

#

i really dont know what it is

limber skiff
#

hmm so it is a find

austere talon
limber skiff
#

nothing technically

charred monolithBOT
austere talon
#

we should just make the updater force restart once update applied

#

instead of levaing you the choice

verbal pumice
#

why

austere talon
#

welllll

#

there u go

#

:p

verbal pumice
#

it should be clear that discord will restart after you update

charred monolithBOT
limber skiff
#

@austere talon how is window even being there if we mark it as not enumerable

austere talon
#

if its a property

#

we only check module.exports = window

#

but if its like module.exports.window = window

#

actually

#

no we dont check exports anymore

#

then its defualt export maybe

limber skiff
#

we should not put these fixes in the finds

austere talon
limber skiff
#

it should be in the factory wrapper

#

to mark it as not enumerable

austere talon
#

these are gone cause not enumerable

austere talon
limber skiff
#

I will fix it dont worry

charred monolithBOT
austere talon
#

nop i did alr xd

#

but reporter still broken so its not that

woeful sable
#

rip

austere talon
#

i mean i know the issue, i know the exact line of code that causes the issue xd

#

but idk why it does

limber skiff
#

who would guess message update api is so fucking easy

#

right this should support updating with no changes

austere talon
#

pretty sure you can just MessageStore.markChanged()

limber skiff
#

you cant

#

you need to commit the new cache and update the message reference too

#

the first makes the useStateFromStores trigger

austere talon
#

i mean instead of Flux.Emitter

#

xd

limber skiff
#

the second triggers the memo re-render

#

oh

#

nop

austere talon
#

store.emitChange()

limber skiff
#

right

#

this doesnt need to be an api

#

it can be an util

#

isnt it lovely

#

it doesnt update the message while the app is starting

#

why.

#

accessories are not getting re-rendered ๐Ÿ”ฅ

charred monolithBOT
verbal pumice
limber skiff
#

it's this shit

charred monolithBOT
#

8bda3a1 LoadingQuotes: more customization & custom quot... - UlyssesZh
c431b7d fix(MessageLogger): correctly mark markdown hea... - nin0-dev
c2f8837 new plugin: MaskedLinkPaste (#2514) - sunnniee
5b35d7c fix occasional errors in Dearrow & ImageZoom - Vendicated
8131ca8 USRBG: support new simplified profile (#2501) - AutumnVN

limber skiff
#

force push time

charred monolithBOT
charred monolithBOT
limber skiff
#

puppeteer is weird

charred monolithBOT
frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

works :)

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
charred monolithBOT
limber skiff
#

oops should have not add that one

charred monolithBOT
limber skiff
charred monolithBOT
frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
charred monolithBOT
charred monolithBOT
shell shuttle
timid reef
#

welp i guess i dont have to talk via github commits anymore

austere talon
#

this never worked before

#

like the icon didnt update

#

speaking of which that plugin is written like shit

#

what was i cooking

#

dynamically builds css to hide ๐Ÿ˜ญ

desert cosmos
limber skiff
#

that took so much reverse engineer to get working

#

and it's so simple lmaoo

charred monolithBOT
nimble plaza
#

@austere talon

#

sorry i forgot to yesterday

#

test subject:

desert cosmos
# charred monolith

seems like the "animate" option is broken, returns a gif regardless of setting, unless im tripping

nimble plaza
#

OHH i forgot to reimpliment that

#

thanks!!!

#

it should work

#

oh wait im dumb

#

i was returning https://cdn.discordapp.com/banners/id/anotherid, not https://cdn.discordapp.com/banners/id/anotherid.gif

#

@austere talon would this ternerary be too cursed

#
const extension = settings.store.animate ? profile.banner.startsWith("a_") ? ".gif" : ".png" : ".png";
    return `https://cdn.discordapp.com/banners/${userId}/${profile.banner}${extension}`;```
austere talon
#

bestie

#
const extension = settings.store.animate && profile.banner.startsWith("a_") 
    ? ".gif"
    : ".png";
nimble plaza
#

ohhhhhh

#

ty

#

@cunning canyon does the usrbg api have a way to specify png or gif? or is there any way to tell if a user's banner is animated?

charred monolithBOT
austere talon
#

surely gifs have magic right

#

is usrbg limited to gifs or can it also be apng/webp/avif...

nimble plaza
#

oh it gives content-type

#

oki

#

how would i handle async in a react component

#

state?

austere talon
#

or yeah content type

austere talon
#

funny hook fail

charred monolithBOT
nimble plaza
nimble plaza
#

pindms's module loader for the modal to edit a group is failing on stable btw

austere talon
#

real or fake

nimble plaza
frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

nimble plaza
#

does reporter test for extractandloadchunks tho

austere talon
#

huh

#

i ran it manually

nimble plaza
#

yeah i realised

austere talon
#

hmm indeed

#

it should catch it

#

clearly it doesnt

limber skiff
#

because it is matching something

austere talon
#
let N = (0,
    _.makeLazy)({
        createPromise: ()=>Promise.all([n.e("49237"), n.e("99387"), n.e("96427"), n.e("40326"), n.e("23357"), n.e("28020"), n.e("15972"), n.e("6416"), n.e("38674"), n.e("43906"), n.e("33053"), n.e("49146"), n.e("17938"), n.e("76540"), n.e("65866"), n.e("93521"), n.e("80603"), n.e("18824"), n.e("5528"), n.e("73427"), n.e("79618")]).then(n.bind(n, "989804")),
        webpackId: "989804",
        name: "UserSettings",
        _: Promise.all([n.e("49237"), n.e("99387"), n.e("96427"), n.e("40326"), n.e("23357"), n.e("28020"), n.e("15972"), n.e("6416"), n.e("38674"), n.e("43906"), n.e("33053"), n.e("49146"), n.e("17938"), n.e("76540"), n.e("65866"), n.e("93521"), n.e("80603"), n.e("18824"), n.e("5528"), n.e("73427"), n.e("79618")]).then(n.bind(n, "989804"))
    })
limber skiff
#

but it's not capturing what it should be

hybrid blaze
austere talon
#

oh i see the issue

#

the webpackId: "..."

#

oh wait no

#

it should work??

limber skiff
#

entryPointId seems to be NaN

austere talon
#

is entry point not n.bind(n, "989804")

limber skiff
#

it's just the number

#

without ""

austere talon
#

ye

limber skiff
#

what is it matching?

austere talon
#

idk

limber skiff
#

fuck I know

#

I added another case

#

there are 3 groups now

#

chunks when its promise all

limber skiff
#

chunks when its single promise

#

and entry point id

#

the regex for better settings only has 2 groups

#

so the entryPoint is getting treated as the second group instead of the 3rd

austere talon
#

wrong group

limber skiff
#

extractAndLoad needs to account for when it's only 2 groups

austere talon
#

just check group count

limber skiff
#

if the 3rd group is undefined, use the 2nd

#

easy fix

austere talon
#

yeah

limber skiff
#

yeah that should work probably

#

are you gonna fix it or you want me to fix later

#

actually leave it for me

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

okay

#

time to start another night of vencord refactoring

charred monolithBOT
austere talon
limber skiff
#

your old implementation for waitForComponent had this

#

I never understood why

austere talon
#

oh yeah

limber skiff
#

today I realized why

austere talon
#

for funny properties

limber skiff
#

yeah

austere talon
#

๐Ÿฆฆ

limber skiff
#

I had changed more user tags and said it was not possible to access those

#

because I was assigning to the wrong thing

#

instead of the wrapper i was doing the inner component

#

so of course it didnt work

limber skiff
#

/(?:(?:Promise\.all\(\[)?(\i\.e\("[^)]+?"\)[^\]]*?)(?:\]\))?|Promise\.resolve\(\))\.then\(\i\.bind\(\i,"([^)]+?)"\)\)/

#

most sane vencord regex

limber skiff
#

in operator is kinda bad

#

mimimi cannot use in operator in boolean

#

๐Ÿคจ

#

is this true, it just had happened

#

probably just me messing up

frail skyBOT
#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

Settings (had no effect):
ID: 394644
Match: /\{section:(\i\.\i)\.HEADER,\s*label:(\i)\.\i\.Messages\.BILLING_SETTINGS/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

sterile oak
# frail sky

what's this bad patch that the webhook keeps yapping about?

austere talon
#

old settings patch

#

not needed anymore

#

we removed it but then discord decided to revert to a 10 days old build which required it again

#

and now we're just leaving it in for now for safety

crude raptor
#

heh