#๐Ÿ‘พ-core-development

1 messages ยท Page 144 of 1

turbid hatch
#

BADGE API

#

AT LAST

austere talon
#

not api

turbid hatch
#

we could take this opportunity to stop using csv to make it easier to manage them :P

#

keep the csv file as a fallback but then new badges get done in a different way

#

then kill the csv when barely anyone is requesting it

livid heath
#

migrate to a db approvestare

austere talon
#

it doesnt get easier than csv

turbid hatch
#

csv's annoying to edit if you need to remove something automatically

#

i hate dealing with csv so much

austere talon
#

well youre not the one dealing with it

turbid hatch
#

well

#

yes

#

i'm expressing my opinion on csv

#

lol

#

reading and writing by tools has so many pitfalls

austere talon
turbid hatch
#

love u

#

i no longer have ptsd from work

dusk hill
#

u had a json file laying around u never told no one ๐Ÿ˜ญ

austere talon
#

?

dusk hill
#

u wont be using the github one right?

dapper crest
#

review the pr that adds shit to ClientTheme
it's done

livid heath
#

Pretty confident this is up to Vencord standard
mood

charred monolithBOT
limber skiff
austere talon
#

devtools crash is fixed btw

junior olive
#

Gm vencord dev blobcatcozy

tired orbit
#

HOW do i write a plugin HUH

limber skiff
tired orbit
#

lovely dofbusiness

limber skiff
#

but you can prob learn more looking at other plugins

junior olive
limber skiff
#

๐Ÿ˜‚ I did my first plugin looking at the docs

tired orbit
#

ok i give up

limber skiff
#

or should I say, my first patch

charred monolithBOT
#

Discord Account

megumin

What happens when the bug or crash occurs?

When clicking next/previous when using a device via Spotify Connect, the request is getting wrongly rejected.

While caused by Discord's code, it would be good for us to fix this functionality.

SpotifyUtils.SpotifyAPI wrongly rejects the promise if the status is 202 (Request Accepted), which causes Discord to re-send the request after 5000ms. This means that the track is skipped twice. I'm unsure as to why ...

umbral hedge
#

^ any opinions on which solution is best

junior olive
tired orbit
#

i wanted to make something but need persistent storage

junior olive
#

did you want to make a persistent message logger

tired orbit
#

no

#

i wanted to make a thing where if you copy a link it prompts you for a title and it saves it permanently somewhere

limber skiff
junior olive
#

oh ok well there's persistent storage

tired orbit
#

so you can copy memes all day and have them available

junior olive
#

That seems easy enough

limber skiff
#

@dapper crest I think I'm gonna reimplement the color picker to use a round button like this

junior olive
#

nookies abt to write this plugin in full for this person

limber skiff
#

I found out the color picker component we use runs the CustomColorPicker on click

tired orbit
#

oh noo please dont do that bugcatsideeye

limber skiff
#

so I just need to make the parent wrapper which is the round button and on click handler

limber skiff
charred monolithBOT
umbral hedge
limber skiff
#

oh I didnt see

#

@umbral hedge I think second is better

#

spotify utils is part of what? spotify controls?

umbral hedge
#

ye

#

well spotify utils is discord code

#

that's used in spotifycontrols

limber skiff
#

ye but we have a wrapper around it too

#

ig just make a patch in spotify controls to fix that

#

it should be easy prob

austere talon
#

is this a new thing?

#

ive never had that happen to me

#

@umbral hedge

umbral hedge
#

when using spotify connect

#

not spotify client

austere talon
#

huh

#

what's that

#

like what's the difference

umbral hedge
#

using speakers and stuff

austere talon
#

i would just make it not reject on 202

umbral hedge
#

ye

#

that's the 2nd solution i wrote in the issue

#

it's still really weird that they reject on 202

#

discord moment

junior olive
#

is it a intentional reject?

umbral hedge
#

ye

junior olive
#

weird

umbral hedge
#

the request works fine and the track skips

#

but discord has a specific check for 202

junior olive
#

yeah thats weird af

umbral hedge
#

yeah lmao

verbal pumice
junior olive
#

shrug, it's not really necessary but not really a issue either

#

just was curious why conform to that in a plugin

verbal pumice
#

it's preference

#

ยฏ\_(ใƒ„)_/ยฏ

junior olive
#

yeah

turbid hatch
#

lodash style guide

charred monolithBOT
#

checkbox variable seems to not return 0 or 1, or there is an issue with the stylus preprocessor:
regardless of the status of the checkbox variable, the stylus preprocessor always interprets the output as true, when using a text variable, the stylus preprocessor interprets 0 as false and 1 as true, even though in the checkbox, it should also return 0 or 1

my code: if you go into settings you should see the left side with a red or blue background, it is red when the checkbox if condition re...

dapper crest
#

I like the current color picker because it's identical to the one the original experiment used

elder garnet
#

usercss will literally make me happy

charred monolithBOT
umbral hedge
#

ez

charred monolithBOT
austere talon
#

why does discord specifically reject on 202

#

seems like there might be a reason to

turbid hatch
#

wait

#

you cant escape strings in stylus?

#

that's uh

#

bad

#

holy crap you cant

elder garnet
#

lewi how do i update to the newest commit lol, do i have to do it via the cli?

elder garnet
turbid hatch
#

did you use gh cli

elder garnet
turbid hatch
#

recheckout

elder garnet
#

oh okay

turbid hatch
#

but

#

i cant handle them properly in stylus

umbral hedge
elder garnet
#

i mean in practice

turbid hatch
#

if someone types a string like "this is lewi's testing string" then that's literally unparsable

#

by stylus

limber skiff
turbid hatch
#

because i have to escape one or the other to make it a string

limber skiff
#

it wasnt there, doesnt need to add

umbral hedge
#

eslint

turbid hatch
#

but you cant escape

umbral hedge
#

added it

turbid hatch
#

so essentially in stylus you can't have a string with both types of quotes in it

#

its just impossible

elder garnet
#

OH

#

not a big deal i'd guess

charred monolithBOT
turbid hatch
#

we really should have support for it though

#

i already support it for less by replacing all quotes with \"

elder garnet
#

maybe you could prioritise " over ' so if " " is around ' ' then you handle ' as a string

turbid hatch
#

if you have both it will still fail to compile

#

this sorta sucks on stylus' part

olive aurora
#

concat the strings

elder garnet
#

wait can you open a string with " and close it with '?

olive aurora
#

replace " with "+'"'+"

turbid hatch
#

stylus has no concat

#

oh wait

#

hm

olive aurora
#

what

turbid hatch
#

in variable definitions it might

#

ahhh it does

#

hmmmmm

#

good to know

#

alright i can work with this

elder garnet
#

your fix works perfectly fine btw

turbid hatch
#

yip just fixing text

elder garnet
#

thank you :3

#

oh also, is it possible to have options that depend on the state of a checkbox, for example if you have Hide-Nitro enabled you can then show more checkboxes to hide something like the gift icon or the nitro button in dms

turbid hatch
#

nop

#

not supported by usercss

elder garnet
#

custom value trolley

turbid hatch
#

me and my dad collectively discovered that stylus doesnt have escape sequences

#

(yes my dad got interested in me writing vencord code)

elder garnet
#

lol

turbid hatch
#

anyway it should be fixed now fully

#

for text

elder garnet
#

my dad is only interested how i remember 3.1415926535897932384626

#

nice, thank you

umbral hedge
#

pog

austere talon
umbral hedge
#

oh i replied but ig i forgot to send it or smth

#

they probably noticed sometimes requests return a 202, but it's not documented in the API docs for some reason, so they probably rejected it since it doesn't meet the api spec
when spotify.exe is running, it returns 204, but when using spotify connect instead, it returns 202

#

there's nothing actually wrong with a 202 response, it basically just says "We've forwarded the request to your device"

charred monolithBOT
charred monolithBOT
junior olive
#

tbh I always thought lodash as _ is a little odd, following that even in a plugin seems silly to me but ultimately it's just preference and doesn't really matter

dapper crest
#

probably has its roots in being designed as helper methods for common problems, so the code you write using the library should be small, so having _. instead of lodash. is prefferable

#

why not just destructure in imports? /shrug

junior olive
#

Do you use lodash for anything more than mapReject

#

I can't remember

dapper crest
#

let me check

#

_.isNull

junior olive
#

dare I say.. you don't need lodash..

#

there's no harm in using them tho so

dapper crest
junior olive
#

yeah

#

I mean I understand why lodash is how it is but we're 14 years down the line I don't think it has to be used like that anymore

dapper crest
#

because its convenient and there is no real downside

junior olive
#

I just did a quick search of vencord

#

wtf f53 inconsistent code style?! /s

charred monolithBOT
dapper crest
charred monolithBOT
woeful sable
#

where do i download vencord DEV build?

dapper crest
#

git switch dev

#

and if you don't understand that, you probably don't want the dev build

shy veldt
#

@limber skiff hi run vencord reporter

#

i wanna see everything shit itself

limber skiff
#

what happened

shy veldt
#

the canary one

limber skiff
shy veldt
#

try it

#

it returns []

#

findByProps exploded

limber skiff
#

uh

junior olive
#

i just updated and my client seems oook

limber skiff
#

can you screenshot webpack runtime

shy veldt
#

๐Ÿ™

junior olive
limber skiff
#

GITHUB MOBILE IS SO BAD

#

I CANT RUN WORKFLOW ON THIS SHIT

shy veldt
#

yeah you cant

#

hop on browser

#

you loove filenames

junior olive
#

is that

#

moduleId.hash.js

shy veldt
#

doesnt seem so

limber skiff
#

okay I ran

shy veldt
#

its just chunkid or something

limber skiff
#

yeah it's chunk id

shy veldt
#

according to the silly @mortal fractal

mortal fractal
#

yeah everything is chunkid.hash.js now

#

with a couple named chunks

shy veldt
#

how nice of them (die?)

#

discord try not to break client mods for a year challenge (fail)

limber skiff
#

it's running on stable first

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

shy veldt
#

so true

limber skiff
#

well at least reporter seems to work

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

junior olive
#

my vencord is fine too so idk

shy veldt
limber skiff
#

we vibing

limber skiff
#

how do you actually know they changed stuff @shy veldt

junior olive
#

some error from patchWebpack lolz

limber skiff
#

yes and that's bad

#

what is the error

junior olive
junior olive
#

fails to read the value of require.c[id]

limber skiff
#

odd

junior olive
#

orr wait

#

i think

#

require.c gone??

shy veldt
#

yes

#

absolute silliness

junior olive
#

wait

limber skiff
junior olive
#

discord is dumb

#

not discord

#

devtools

limber skiff
#

huh

#

is it gone or not

junior olive
shy veldt
limber skiff
#

it's not gone all finds worked

shy veldt
#

๐Ÿ˜ข

junior olive
#

yeah i misinterpreted

shy veldt
#

why does it work on plugins

junior olive
#

devtools took me to the wrong line

shy veldt
#

and not just findByProps

#

hollow

#

do I have like some shitty old ass vencord

#

what is the latest version

junior olive
#

it works fine for me

shy veldt
limber skiff
#

lmao you are making me so confused

junior olive
#

sorry

shy veldt
#

it works but it doesn't (real?)

junior olive
limber skiff
shy veldt
#

okay so yes i do have the latest

junior olive
#

im on dev branch

#

i can test main rq

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

grave mangoBOT
frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

junior olive
#

yeah no i just tried main branch on latest canary im all good

#

maybe its web specific issue????

shy veldt
#

hollow

limber skiff
#

they dont return the value of the callback anymore

#

r is undefined

#

it's been like that since ages

shy veldt
limber skiff
#

so when you do e => e, . push doesnt return e

junior olive
#

i just tried vesktop its fine...wtf

limber skiff
#

when rspack I think i don't remember

junior olive
#

rsfold when

limber skiff
#

but if you look how we grab require we not longer depend on.push returning it

shy veldt
#

hopped on pc

junior olive
#

im just confused why dziurwas vencord webpack is fucked

shy veldt
#

what did i do to break it on mobile

#

wires

shy veldt
#

howww

#

idk i dont do code

#

thx

limber skiff
#

just define require outside and do require = e

#

and use it in the chunk loading

junior olive
shy veldt
junior olive
#

no

shy veldt
limber skiff
#

**loadLazyLoadedChunks.ts: **

// @ts-nocheck

let r;
webpackChunkdiscord_app.push([
    [Symbol()], {},
    e => r = e
])

export default async function loadLazyLoadedChunks(): Promise<void> {
    for (let i = 0; i < 100000; i++) {
        if (r.u(i)) {
                try {
                    await r.e(id);
                } catch (error) {
                    console.error(error);
                }
        }
    } 
}
junior olive
limber skiff
#

that should work I think

#

I did on mobile so not sure

#

yeah it should work

limber skiff
#

indentation is kinda fucked up but whatever

shy veldt
#

well

#

we will see

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

shy veldt
#

ran funny workflow

#

nice

#

(it fucking exploded)

limber skiff
#

lmao the normal reporter ran

limber skiff
shy veldt
#

webpackChunkdiscord_app is not defined

#

but ofc

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

ok wait

#

I'm dumb

shy veldt
#

yeah ๐Ÿ™

limber skiff
#

**loadLazyLoadedChunks.ts: **

// @ts-nocheck

export default async function loadLazyLoadedChunks(): Promise<void> {
let r;
webpackChunkdiscord_app.push([
    [Symbol()], {},
    e => r = e
])

    for (let i = 0; i < 100000; i++) {
        if (r.u(i)) {
                try {
                    await r.e(id);
                } catch (error) {
                    console.error(error);
                }
        }
    } 
}
#

horrible indentation but fixed

shy veldt
#

virus

#

will it work ๐Ÿ™ ๐Ÿ™

limber skiff
#

yes

shy veldt
#

it did

limber skiff
#

you just have to fix indentation lol

junior olive
#

clienttheme is in dev right

shy veldt
#

I'm already on my way to diff it (fuck this im not doing it)

limber skiff
#

the initial version is in main

#

the light theme support in pr

junior olive
#

oh shit yeah it is

#

huh

limber skiff
#

why?

junior olive
#

i was thinking clienttheme was in dev and that the light mode pr was wanted before dev -> main merge

shy veldt
limber skiff
#

ah

#

I was messing around with client theme today

#

but I haven't got a thing to work yet

junior olive
#

rip

limber skiff
#

I didnt try for long though since I had to go

limber skiff
shy veldt
#

whar

limber skiff
#

the push returning the require

#

cuz that was fixed long time ago in vencord

shy veldt
#

real

shy veldt
#

nothing interesting

austere talon
#

they still do

#

it's just that in the early stage of webpackGlobal it gives some yeeyee ass fake webpack require

#

without cache

#

it's only added later

limber skiff
#

well dzi stuff just broke cuz of that

austere talon
#

but it's not true

#

they still return the value

limber skiff
#

I see

austere talon
#

or rather they don't call the callback at all in the first few pushes

grave mangoBOT
limber skiff
austere talon
limber skiff
#

it's cuz the first pushes happen when.push isnt patched yet

austere talon
#

cause for the first like 80 chunks or so, webpack.push isn't the proper webpack push yet

limber skiff
#

yeah

#

so it just pushes to array normally

austere talon
#

anyway what was that about c being gone apparently

#

is it actually

junior olive
#

it isnt

limber skiff
#

no lol

austere talon
#

it wouldn't be a big deal anyway

junior olive
#

i misinterpreted devtools error

limber skiff
junior olive
#

it took me to wrong line i was misinformed

austere talon
mortal fractal
#

export cache is gone?????????

#

fucking hell

junior olive
#

huh?

mortal fractal
#

webpackRequire.c

junior olive
#

its noot

#

that was a false assumption by me blobCatCozy

mortal fractal
#

no

junior olive
#

huh??

junior olive
mortal fractal
#

no its not

junior olive
#

guh???

mortal fractal
#

freshly loaded instance

junior olive
#

one moment ig

terse fractal
#

or do u need to have vencord installed?

mortal fractal
#

vns

nimble pendantBOT
junior olive
#

idk i still see it cyn

#

maybe wreq is fake..

mortal fractal
#

then ven probably added the private cache extractor idk

junior olive
#

shrug gl

#

this is over my skills

limber skiff
mortal fractal
#

wait

#

@junior olive you're on stable arent you

junior olive
#

canary

mortal fractal
#

weird

#

w/e

limber skiff
#

it's right there

mortal fractal
#

???????

limber skiff
#

canary, just updated

mortal fractal
#

did they revert it

junior olive
#

magicrequiresplosion

mortal fractal
#

tf is wrong with your clients wtf

junior olive
#

our clients..?

mortal fractal
#

[default] [BUILD INFO] Release Channel: canary, Build Number: 250415, Version Hash: 1d24c75bf1c1c67cde5fbee4b506d79ef3ccc6f4

junior olive
#
Canary 250411 (0d3fa7c) Vencord 3e7d946Electron 22.3.26Chromium 108.0.5359.215Host 0.0.357 arm64 OS X 10.15.7 (23.1.0)
#

um...

limber skiff
#

[BUILD INFO] Release Channel: canary, Build Number: 250415, Version Hash: 1d24c75bf1c1c67cde5fbee4b506d79ef3ccc6f4

junior olive
#

huh what

#

o

#

its a log

#

weird why am i not updated but wtvr

mortal fractal
limber skiff
#

yes

mortal fractal
#

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

limber skiff
#

c is still there

mortal fractal
#

then something is deleting it?????????????????????

#

SENTRY

junior olive
#

is the magic require not that magic.. Sad

limber skiff
#

huh

mortal fractal
#

WHY IS SENTRY OVERWRITING WEBPACKREQUIRE

limber skiff
#

but it works fine wdym??

#

what is sentry overwriting

mortal fractal
#

sentry.402450ae91f0dd03660c.js is overwriting webpackRequire

#

at least for sideloaded webpack modules

#

w/e im just not going to say shit here anymore

limber skiff
#

oh

#

sentry has their own webpack

limber skiff
#

...

mortal fractal
limber skiff
#

what's the issue with you saying here

sage summit
#

I can't post in the third party plugins channel, which is very cool, so I have a quick question - I notice that hardly any plugins interact with the member list. Is this due to lack of interest, or is it impractical to do so, for example, to override member colors?

mortal fractal
charred monolithBOT
austere talon
mortal fractal
#

"accidentally"

#

theres no fucking way around it

austere talon
#

that happened to my webpack grabber userscript, i accidently got react devtools webpack and was so confused

mortal fractal
#

shits so fucked its like 3 instances of webpack running at once that im surprised the normal app isnt beyond fucked

austere talon
#

discord moment

mortal fractal
#

im just

#

beyond fucking frustrated and burnt out

#

i dont want to have to fuck up the entire internals of hh just to get the fucking client to work

#

i should be in fucking bed by now but i want this to just not fucking be postponed

austere talon
#

go to sleep :c

#

u can fix it tmrw

jagged cloak
#

sleep :p

#

its good for you

charred monolithBOT
shy veldt
#

discord at its finest

charred monolithBOT
charred monolithBOT
spark pivot
#

Why did they do it in the installer repo

dusky sonnet
real zenith
#

using the exposed Vencord object in the browser console, how would I mute the user (as if they clicked on mute in the bottom-left)

#

er wait, I'd probably also have to check if the user is in a vc in the first place

#

although I could probably just listen to the join event for that, right?

real zenith
charred monolithBOT
austere talon
#

what?

#

why from the console

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
dusky sonnet
lime stone
#

lol

#

yes text to speech!

livid heath
#

insane sharex editing skills

verbal pumice
wispy elm
#

being able to pin plugins would be great

#

also those 2 buttons do the same thing in clienttheme plugin settings window, along with clicking outside of it

#

which is save and close

#

cancel button doesn't cancel lol

dapper crest
dapper crest
wispy elm
dapper crest
#

I don't know how to do anything with the buttons on the settings modal

limber skiff
dapper crest
limber skiff
#

to be fair it's no biggie for light mode support to wait a little lol

dapper crest
limber skiff
#

not really, if someone enabled client theme they already know where to find the color picker

#

and they prob wont change the colors so much

#

it doesnt have to be added in a hurry

dapper crest
#

True

elder garnet
turbid hatch
#

@limber skiff just to check did u see that i asked for ur review

limber skiff
#

I didnt lol

turbid hatch
#

oh lol

charred monolithBOT
turbid hatch
#

yeah if u can pls review my insanity

limber skiff
#

yeye as soon as I can, since I will be busy with client theme until I can get the thing I wanna do to work and review

turbid hatch
#

dwdw

rough gazelle
verbal pumice
#

is this what schizophrenia feels like

shy veldt
#

yea

charred monolithBOT
limber skiff
#

oop

#

forgot my comment there

charred monolithBOT
serene elm
#

hi

lime stone
junior olive
#

@limber skiff you think maybe main merge today? wondering if i should hold off on releasing winter decors

limber skiff
#

it's not in my control

junior olive
#

oh ok wasn't sure if you did those sometimes

limber skiff
#

main branch is protected and you can only merge if it passes tests

#

but for that it requires you to pr

#

only ven can push without pr

lime stone
#

amdin bypass

#

oh

limber skiff
#

unless I can?

#

because now the dev branch is tested

#

@austere talon can I try to git push origin dev:main?

limber skiff
junior olive
#

yeh

junior olive
limber skiff
#

right

lime stone
#

huh

junior olive
limber skiff
#

wrong order ๐Ÿ˜‚

lime stone
#

isn't that the dev origin and the main branch

junior olive
#

yeah i dont think thats correct at all lmaoo

limber skiff
#

I fixed the order

austere talon
limber skiff
#

huh

junior olive
#

nookies.. merge

limber skiff
#

doesnt push work

austere talon
#

stop pressuring people so much fiery

junior olive
#

i doubt

junior olive
#

i meant git merge not git push

limber skiff
austere talon
#

next november were doing a nmn

#

no merge november

junior olive
#

no merge may

austere talon
#

when you specify two args to push the first one is the remote (origin) and the second the branch

limber skiff
#

how do you push dev commmts to main?

junior olive
limber skiff
#

okay I fixed the command now

olive aurora
#

no merge 2024

junior olive
#

oh maybe that works

austere talon
limber skiff
#

oh lmao

austere talon
#

anyway ill merge later

junior olive
#

I wasn't trying to pressure, i was just wondering. I'm sorry if it came off that way?

limber skiff
#

it does work

limber skiff
#

because before I couldnt since it required tests to pass

limber skiff
junior olive
#

git push dev main on the otherhand

limber skiff
#

yeah I had wrote it wrong

junior olive
limber skiff
charred monolithBOT
junior olive
#

can u find a webpack module's code by its props out of curiosity

limber skiff
#

no

junior olive
#

thought so rip

austere talon
#

you can

mortal fractal
#

im going to assume theres been 0 issues with ReactCurrentDispatcher disappearing halfway through a render on vencord

charred monolithBOT
somber lintel
#

so im relatively new to vencord as one would be probably able to guess, im trying to patch the updateVideoQuality function in discord, any tips? its very different from betterdiscord as we all know

nimble plaza
#

didnt that just get added

#

.

charred monolithBOT
spark pivot
gleaming trellis
#

and itโ€™s deleted

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

SuperReactionTweaks (found no module):
ID: -
Match: .hasAvailableBurstCurrency)

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

SuperReactionTweaks (found no module):
ID: -
Match: .hasAvailableBurstCurrency)

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
#

@D3SOX @Nullmatic can you test the plugin in Vendicated/Vencord#2024 to test if it gets rid of the unwanted pastes?

Sorry for the late reply. The plugin did limit the number of pastes when enabled on my side at least. It doesn't stop them but makes it harder for it to happen every click so that is a plus.

The funny thing I also found when testing is that when enabling native Wayland capabilities using the flag: ```--ozone-platform-hin...

charred monolithBOT
#

Sorry for the late reply. The plugin did limit the number of pastes when enabled on my side at least. It doesn't stop them but makes it harder for it to happen every click so that is a plus.

Can you try increasing the reenable delay slider in the plug-in settings? Also check the other setting for when to allow pastes- the text input is selected until you click on another element and by default I still allow pastes when text boxes are selected.

The funny thing I also found when testin...

charred monolithBOT
#

Can you try increasing the reenable delay slider in the plug-in settings? Also check the other setting for when to allow pastes- the text input is selected until you click on another element and by default I still allow pastes when text boxes are selected.

For me, when I set the settings to "Whenever a textbox is active" and set reenable delay to 1000ms usually after the first middle-click, the second one will paste into the chat box. The same happens when setting to "Only when clicking ...

limber skiff
#

bro look at this match @junior olive

let a = /(\.trackEmojiSearchEmpty,200(?=.+?isBurstReaction:(\i).+?(\i===\i\.EmojiIntention.REACTION)).+?\[\2,\i\]=\i\.useState\()!1\)/;
junior olive
#

ah r u fixing that

limber skiff
#

I'm getting the var name from ahead and using it to match the useState

charred monolithBOT
frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
limber skiff
#

made a bit more generic

junior olive
#

that one wasnt mine iirc

limber skiff
#

I mean I made the new patch more generic

limber skiff
junior olive
charred monolithBOT
charred monolithBOT
#

@Nullmatic moving conversation from the other thread here. I fixed the timeout so rapid double clicks won't trigger pastes, can you test it?

Some pastes that don't get a target will still get passed through ComponentDispatch. This is pretty uncommon though (I mostly got this when middle clicking on a popout menu, which you can't scroll on anyway...).

Another approach that might work better is blocking input to the text input itself instead of trying to block paste events.

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
turbid hatch
#

OKAY YOU DONT HAVE TO YELL

charred monolithBOT
turbid hatch
#

@topaz thistle i might need your help in a bit

charred monolithBOT
turbid hatch
#

i'm trying to package vesktop for flatpak so i need to know if there's anything special i need for venmic to work

turbid hatch
#

i've already added the pipewire run dir as a permission for flatpak but am unsure if any other perms need to be granted or any flags need to be passed to electron

topaz thistle
#

we also need pulseaudio perms

turbid hatch
#

already added

#

im using the armcord flatpak as a base if you want to have a look

topaz thistle
#

With that as as base and pipewire perms added it should work fine ^^

turbid hatch
#

alrighty

austere talon
#

cause it reinvents the wheel

austere talon
#

you can also just implement it in vencord with the flag

turbid hatch
#

IT WORKS

#

GOD I LOVE WSL

#

every single release backdated

#

lets go

austere talon
#

yes

turbid hatch
#

this is exciting

austere talon
#

why fork to ur personal acc

charred monolithBOT
turbid hatch
#

of the flatpak

#

it's how they do things

#

like how we have shiggybot fork winget-pkgs to itself because its submitting it

#

(it forking to vencord org was actually a mistake in the end so)

charred monolithBOT
#

Content

Hi,
For the past 2 days everything was as smooth as butter. Today when I was updating the css of my plugin, I found out that pnpm inject no longer works as there's a problem with the installer file. Here's the full error log:

D:\Modding\Git\Vencord>pnpm inject

vencord@1.6.4 inject D:\Modding\Git\Vencord
node scripts/runInstaller.mjs

Downloading VencordInstaller.exe
node:internal/errors:490
ErrorCaptureStackTrace(err);
^

TypeErr...

austere talon
#

ojfajposikfjpikoawipjofwqajio

#

you love

#

honestly i have no clue why it pastes as grafik ahahahha

#

my github is in english

#

i have my firefox in germna

#

maybe thats why

charred monolithBOT
real zenith
#

crap

#

didn't mean to ping

#

my bad

charred monolithBOT
austere talon
#

blud leaving the update window open for hours

charred monolithBOT
austere talon
#

uh are u sure? @turbid hatch

#

it should work

turbid hatch
#

yes

#

the splash window doesnt show up but the main window still does @austere talon

austere talon
#

yea but it shouldnt

austere talon
turbid hatch
#

in fact the main app starts maximised!

#

ahahaha

#

worked it out

#

if the app was maximised when you quit it, it will restart maximised regardless

#

let me edit my comment

charred monolithBOT
austere talon
#

makes sense

#

likely need to add here as well

turbid hatch
#

yeah

#

youd have to do like

#
mainWin!.maximize();
mainWin!.hide();
turbid hatch
#

if you dont do it then when you restart the app it wont be maximised

turbid hatch
#

weird side effect of electron i suppose, but it makes sense

#

you cant maximise a nonexistent window

turbid hatch
#

???

#

why the fuck is it using yarn

austere talon
#

it doesnt support pnpm

turbid hatch
#

yeah but yarn wont run

#

because it thinks it needs corepack

austere talon
#

error This project's package.json defines "packageManager": "yarn@pnpm@8.11.0". However the current global version of Yarn is 1.22.21.

#

LOL?? no it doesnt lmao

turbid hatch
#

and corepack will install pnpm

#

its prefixing it with yarn@ for some reason??

austere talon
#

how do we fix it thinkTux

turbid hatch
#

rerun!

austere talon
#

i dont think that will work ๐Ÿ˜ญ

turbid hatch
#

no it's an issue with the new yarn release

#

lol

#

the action uses the latest version of yarn

austere talon
#

we could just stop using the action

turbid hatch
#

oh there's a fix

#

SKIP_YARN_COREPACK_CHECK=1

austere talon
#

its so little code

turbid hatch
#

i believe it works

#

let me check

#

oh i dont think it does

#

that sucks

austere talon
#

if u read it

#

yeah literally

turbid hatch
#

alright

austere talon
#

i'll just move away from it

turbid hatch
#

let me rewrite it

charred monolithBOT
austere talon
#

oh i can do it rq

turbid hatch
#

already doing it

#

nerd

austere talon
#

nop

#

me

#
- name: Run Electron Builder
  run: |
      case "${{ matrix.os }}" in
            macos-latest) platform=mac ;;
            ubuntu-latest) platform=linux ;;
            windows-latest) platform=windows ;;
      esac

      pnpm install
      pnpm build
      pnpm electron-builder --$platform --publish always
  env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

#

should work i think?

turbid hatch
#

GH_TOKEN

austere talon
#

wdym

turbid hatch
#

env should be GH_TOKEN

austere talon
#

oh right

turbid hatch
#

GITHUB_TOKEN was a thing that only the action did

charred monolithBOT
#
[Vencord/Vesktop] branch deleted: ci/cry-about-it
#
[Vencord/Vesktop] New tag created: v0.4.4
turbid hatch
#

let me do a

#

oh

#

yeah works too

#

LOL

#

whoops

austere talon
#

no pnpm

charred monolithBOT
#
[Vencord/Vesktop] New tag created: v0.4.4
austere talon
#

nothing i hate more than ci

#

LOL

turbid hatch
#

oh

#

right

austere talon
#

I FORGOT

turbid hatch
#

windows doesnt use bash

#

yes

#

that is a uh

#

doozy

austere talon
#

sooo

#

how do we do this

turbid hatch
#

cry

#

write a js

austere talon
#

horror

#

can you use advanced syntax in the env: field

turbid hatch
#

yeah

austere talon
#

OHH

#

i got it

#

wait idk

#

do i?

turbid hatch
#

idk what ur smoking

austere talon
#
strategy:
    matrix:
        os: [macos-latest, ubuntu-latest, windows-latest]
        include:
            - os: macos-latest
              platform: mac
            - os: ubuntu-latest
              platform: linux
            - os: windows-latest
              platform: windows
turbid hatch
#

yeah that might work

#

though out of curiosity

#

do we actually need to run it like this

charred monolithBOT
turbid hatch
#

electron builder supports cross compilation does it not

#

Donโ€™t expect that you can build app for all platforms on one platform.

#

oh nevermind

lime stone
#

oh god

charred monolithBOT
#
[Vencord/Vesktop] New tag created: v0.4.4
lime stone
#

i still have ptsd from trying to use electron builder in gitlab CI

austere talon
#

PLEASE WORK

#

seems to be working??

#

win and macos worked

charred monolithBOT
swift fjord
#

kitkat

charred monolithBOT
woeful sable
#

DoubleClickRename plugin?

lime stone
#

have you made it?

woeful sable
#

no haha it's a concept

lime stone
#

oh

#

is it too useful?

woeful sable
#

i think it could be useful if you only want to rename the channel, especially when you have multiple ones to rename

austere talon
#

kinda useless just right click > edit

woeful sable
#

going through the channel settings page then leaving it everytime is pain a bit

#

it's just a suggestion though, i think it could help going faster

#

and since double clicking a channel doesn't do anything currently, i find it being a good opportunity

austere talon
#

this doesnt belong here anyway

woeful sable
#

ah my bad, the suggestion channel is closed so i sent it here to talk to devs and get their opinion

austere talon
#

girl what... @nimble plaza

nimble plaza
#

it was the same issue as a while ago when native plugins were introduced

#

it got mad if nothing was exported

woeful sable
austere talon
#

correct

nimble plaza
#

simple fix, export default () => {}

austere talon
#

ohhh

woeful sable
austere talon
#

that shouldnt happen

nimble plaza
#

it exports something when theres no export calls

#

so u need to do it urself with a function

#

i dmed u the broken plugin a while back

austere talon
#

this has no exports

#

but it does have imports

#

does your file that's broken have impoorts?

nimble plaza
#

??

#

yes

austere talon
#

send the file contents

nimble plaza
austere talon
#

terrible file

nimble plaza
#

took from another pr and fixed it up

#

(it was a typescript file with no types husk )

austere talon
#

AHAHHAHAH i downloaded and opened and it tried to open as a video

charred monolithBOT
#

Hey, just tested AppImage of 0.4.4 on Steam deck and it reports that c++ lib is too old when it's not.

(deck@steamdeck lib)$ ldd --version
ldd (GNU libc) 2.37

Compiled by GNU CC version 13.1.1 20230429.

Error in console shows:

Failed to initialise venmic. Make sure you're using pipewire Error: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /tmp/.org.chromium.Chromium.NgEKiM)
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:21...
#

the version you checked is glibc, not glibc++

try the flatpak version, it will likely work. it's currently still in development so you'll need to build from source:

cd /tmp
git clone https://github.com/lewisakura/flathub
cd flathub
git checkout vesktop

sudo flatpak install flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.electronjs.Electron2.BaseApp//23.08

sudo flatpak-builder --install build-dir dev.vencord.Vesktop.yml --force-clean

/usr/bin/fla...
charred monolithBOT
#

the version you checked is glibc, not glibc++

try the flatpak version, it will likely work. it's currently still in development so you'll need to build from source:

cd /tmp
git clone https://github.com/lewisakura/flathub
cd flathub
git checkout vesktop

sudo flatpak install flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.electronjs.Electron2.BaseApp//23.08

sudo flatpak-builder --install build-dir dev.vencord.Vesktop.yml ...
austere talon
turbid hatch
#

๐ŸŽ‰

charred monolithBOT
charred monolithBOT
analog knoll
austere talon
#

because if you just skip it, it won't be maximised once you do launch it

charred monolithBOT
charred monolithBOT
#

When this requires a Vencord plugin anyway, I don't see the need for this anymore as https://github.com/Vendicated/Vencord/pull/2003 exists which does it just as a plugin. Or better yet add the flag via plugin so it only requires the plugin. Alternatively I think what you're doing in the plugin right now could be moved to here under src/renderer/patches

Personally, I think the approach of both the desktop setting and plugin is better than the manual feature because

  • the desktop setting ...
charred monolithBOT
charred monolithBOT
charred monolithBOT
turbid hatch
#

@austere talon my friend has had a deranged idea where if we do the konami code on the website it shows men kissing

#

should i implement

austere talon
#

horrorrro

turbid hatch
#

"that's a yes" - dy

charred monolithBOT
charred monolithBOT
#

I understand that it would be annoying for this to be the default if you like to make redundant clicks on the bar. Would this be acceptable as an settings option? With #261 patched in I basically only use the system tray to launch the Vesktop

I don't think it'd bad UX- for almost every system tray icon clicking it once opens something or does an action and clicking it again closes it or reverses the action. It's somewhat against the standard convention to have an icon do nothing once you c...

frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
frail skyBOT
#
Bad Patches

NoTrack (found no module):
ID: -
Match: window.DiscordSentry=

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
#

I understand that it would be annoying for this to be the default if you like to make redundant clicks on the bar. Would this be acceptable as an settings option? With https://github.com/Vencord/Vesktop/pull/261 patched in I basically only use the system tray to launch the Vesktop

Maybe? But it's still a really weird option to have.

I don't think it'd bad UX- for almost every system tray icon clicking it once opens something or does an action and clicking it again closes it or rever...

#

All of my tray icons do one action when you click them, and doesn't undo the action. The only case I've ever heard of this happening is when the tray icon completely changes to respect the new action (e.g., recording software). It seems like it's against convention to give a tray icon multiple actions depending on context.

What kind of tray icons do you have? All of my icons or widgets do something when you click them again...
![image](https://github.com/Vencord/Vesktop/assets/8976828...

limber skiff
#

WANST ME I THINK VEN]

austere talon
charred monolithBOT
charred monolithBOT
austere talon
#

raw requires by id

#

fear

#

don't require by id they're not stable and will change at any time

always use findByProps or equivalent

#

and it would likely help readability to move most things to the top level instead of having it all be members of ur plugin

#

@brave minnow

#

this is kinda like that other pr but more sane (not 200 files)

limber skiff
#

๐Ÿ™ ๐Ÿ™ ๐Ÿ™ ๐Ÿ™

#

that's actually reviewable

#

you can make all of this a single findBulk

#

look at how permissions viewer does it

austere talon
#

the first one is just webpack commons moment

limber skiff
#

you are right

austere talon
limber skiff
#

yeah, but thankfully it's not 200 files

gleaming trellis
#

Are we finally getting semi stable class names for themes

limber skiff
#

no

austere talon
#

no

#

use attribute selectors

#

[class*=banana]

gleaming trellis
#

more CPU intensive and there are some duplicate names out there

#

the theme I want to use makes the UI unbearably laggy cause of all the advanced selectors (and my computer isnโ€™t that weak)

charred monolithBOT
charred monolithBOT
brave minnow
#

tysm for the tips, i tidied things up n did what u guys said, had some issues with findBulk with some modules (guessing it's cause they load rlly late compared to the other ones? dunno) but it should be a bit better now,,.,

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
torn knot
#

should I report this as a bug or is it a wontfix?

austere talon
#

wontfix

#

arrpc needs to impl it

#

and likely won't

#

get arrpc to add support then it's no longer a wontfix

torn knot
#

I see

#

good to know

#

though I don't think that:
a) I'll be the first one reporting this and
b) My report will have much of an impact

#

But I'll give it a try later

charred monolithBOT
verbal pumice
# charred monolith

while most of these are valid theyre just nits that have no reason to be brought up

#

right ryan isnt here

#

well whatever

junior olive
#

They left?

verbal pumice
#

they got banned

junior olive
#

LMAO why

cunning canyon
#

๐Ÿ’€

verbal pumice
#

having no idea what theyre talking about and giving bad advice, and just generally being a dick

charred monolithBOT
verbal pumice
austere talon
#

kinda mini arjix

#

just kinda too direct and thus rude

#

and insisting on certain points

charred monolithBOT
turbid hatch