#๐พ-core-development
1 messages ยท Page 8 of 1
no
Read the last 2 lines
anyway that issue shouldn't be hard to fix
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true';
slap this in patcher and enjoy 
protocol.registerSchemesAsPrivileged([
{ scheme: 'http', privileges: { standard: true, bypassCSP: true, allowServiceWorkers: true, supportFetchAPI: true, corsEnabled: true, stream: true } },
{ scheme: 'https', privileges: { standard: true, bypassCSP: true, allowServiceWorkers: true, supportFetchAPI: true, corsEnabled: true, stream: true } },
{ scheme: 'mailto', privileges: { standard: true } },
]);
this also works
- Removed some unnecessary
; - Removed
letkeyword andtimeoutvariable - Added
ifstatement - Replaced
as anywithas T
Uh
Wha
Two of those things didn't happen, and the other two are pointless
The as T doesn't even work iirc
I tried messing with the types before
you love hacktoberfest spam
oh god this guy opened multiple prs
Lmao they are doing it in the web editor
wtf is that second pr lmfao
Doubt it builds lmao
that code makes 0 sense
you love
You should add invalid or spam tags
idk bro he made his github a few months ago I feel like he's actually trying, just has no idea what he's doing
What the fuck
based
Me after I dick shit pussy your mother:
you cannot say that!!!! that is an insult!!!!
my bad
me after I money coin btc your eth:
lmaoo
Me when pneb prs my repo
350e7b0 feat(moyai): Add option to toggle triggering mo... - Nuckyz
did you mean to write Text?
would be better to name this Function for debugging purposes
Yeah I'll fix all that stuff after I'm done with the user popout
I have a handful of unpushed changes
ah alright
Also why are those forced to upper case anyway?
some people have weird ocd that they want everything in all lowercase
maybe add a third format that makes everything lowercase
I know some servers where a bot auto lowercases everyone's name lmao
or even owner doing it manually
the original pronoundb plugin keeps those strings capitalized (not that we have to follow it exactly)
is that a bot
please give some recs
- [x] Format on send
- [x] Format on edit
- [ ] Format via command (half lazy to write whole command opt might be nice if got some recs) (or maybe don't add it)
- [ ] Format received messages (using unindent might help with patching??? becuz idk how to patch codeblocks)
fear
rebases >>>>> merge
Gives access to copying on web if browser supports it.
Replace with #127 if/when it gets merged.
@austere talon does this even have a chance of being merged or should i just put it as a third party plugin
sound changer is valid
Hardcoding all the sound names and asset URLs isn't the best idea
Hardcoded variables names
No, it checks if its embedded (desktop app) and uses DiscordNative.copy, otherwise if it can use copy it'll offload to another module that does things with a textarea element and ranges.
I just think it's smarter to use existing function in the client if they exist than relying on DiscordNative.
it hasnt been changed in 4 years, if you're worried that it might, i highly doubt
btw
why is nea here
theres a module that exports a sound map lmao
this
because i shove her everywhere i go
it calls to require other modules but that logic can probably be reworked to call a function in the plugin
thanks megu
lmao thats such a weird hack
it is
browser moment
its a common hack
yeah cause mozilla are fucking idiots
and think its harmful to have the clipboard api be a thing
now implement that in https://exhq.gay/beta
implement it yourself 

my head hurts
its right here
is there a type for react components?
for components, JSX.Element, for children it's supposed to be React.ReactNode
(React.ReactNode accepts things like fragments iirc)
var sounds = Vencord.Util.proxyLazy(() => {
const DJ = find(m => m.resolve && m.keys && m.id && typeof m === "function" && m.keys()[0].endsWith(".mp3"))
return Object.fromEntries(DJ.keys().map(sound => [sound.slice(2), DJ(sound)]))
})
console.log(sounds["call_ringing.mp3"])
@rare shale
discord still has soundpacks code lmao
yes
what do i do with this :3
cringe it isn't exported
why not just patch this
that too
ive written so much shit today i genuinely wanna throw up
merely an issue of skill
can you make a pr or add to my code or something

An alternative to the synchronous Settings API to work around storage limitations of localStorage and allow storing of arbitrarily large data in form of most Javascript DataTypes,
see https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#supported_types
someone with idb knowledge check if this is okay please
is there a good reason to write your own wrapper instead of using idb-keyval or smth @austere talon?
lmao
i didn't know of its existence, I only saw other wrappers and those are insanely bloated, that's why I implemented my own logic
lmao rip
i discovered idb-keyval
and uhh
they literally stole my code I'm gonna DMCA

(on a more serious note their code is basically identical to mine)
L bozo
Message the owner to take it down ig
there done @tame escarp
bro put a license ๐
because you have to?
but i want the store to have a custom name
it offers no better way
guhh i guess
also there's nothing wrong with copypasting source code trolley
can you not just like wrap around the functions
your sanity
its fine
is there a less cursed way to do this
i tried
/**
* jsdoc
*/
export * as Foo from "foo"```
and ```js
import * as Foo from "foo"
export {
/**
* jsdoc
*/
Foo
}```
neither of these work
OK thanks for the feedback I decided to delete this commit as you can see if you scroll up
this is absolutely life changing information, and I am now whole. I wish to give you my first born as a token of my appreciation and $70 billion
what's up with the old commits lmao
ven when he uses an old version of idb-keyval for no reason
(latest has custom names but whatever)
((literally just openDB('name')))
I am aware
but now u have to pass it to every function
const db = await openDb("ye")
get("key", db)
unusable
I could make wrappers like someone else said but why would I do that when simply editing source code is easier
because it's a terrible idea, but who am i to attempt discouraging you
how is it a terrible idea
HD trolley jumpscare
name one reason why it's a terrible idea
explode
you're locking yourself to an old version and it's difficult to update
ok
you're thinking of his other library
A small wrapper that makes IndexedDB usable. Latest version: 7.1.0, last published: a month ago. Start using idb in your project by running npm i idb. There are 326 other projects in the npm registry using idb.
what exactly is the downside of using the other one
none
but it's bigger and more complex
idb-keyval works fine and I have no problem with modifying it
idb's readme also suggests using idb-keyval if all you're doing is key based stuff
what's up with the old commits lmao
I just reused the same branch :trollface: Might have been due to the fact I rebased it
This is my refactor of this.
import { Devs } from "../utils/constants";
import definePlugin, { OptionType } from "../utils/types";
export const Sounds = {
"call_calling": "c6e92752668dde4eee5923d70441579f.mp3",
"call_ringing": "84a1b4e11d634dbfa1e5dd97a96de3ad.mp3",
"call_ringing_beat": "b9411af07f154a6fef543e7e442e4da9.mp3",
"call_ringing_halloween": "15b48ed7383b702ad2a3e9a0f7ebd2c0.mp3",
"chaos_bootup": "74f5be9eb9457fbd255edfe86dd5e59d.mp3",
...
This way other plugins can have access to the audio filenames in a convenient manner.
It also makes it much easier to maintain.
As I said on Discord, Discord already exports all the sounds
var sounds = Vencord.Util.proxyLazy(() => {
const DJ = find(m => m.resolve && m.keys && m.id && typeof m === "function" && m.keys()[0].endsWith(".mp3"))
return Object.fromEntries(DJ.keys().map(sound => [sound.slice(2), DJ(sound)]))
})
console.log(sounds["call_ringing.mp3"])
As I said on Discord, Discord already exports all the sounds
Ok, my point about other plugins using it is gone, but you can't really use discord modules at the same time you are patching them...so hardcoding them is a necessity unless smth changes.
d8afde2 feat(plugins): Moyai ignore bots setting (#130) - Nuckyz
there are multiple modules matching this filter, I matched some random react component
@austere talon is there a way to match the module as a whole or no
i only found the one
if i can grab the entire module by document.queryCommandEnabled("copy")||document.queryCommandSupported("copy") and then take the exported function by .default.copy(
the button in the bottom left
yes
mapMangledModule
const Clipboard = mapMangledModuleLazy("string search", {
cope: filters.byCode(".default.coy(")
})
Clipboard.cope()```
cope
without lazy suffix if u want it immediately but if its a common then lazy
**modal.tsx: **Lines 41-47
export const Modals = mapMangledModuleLazy(".onAnimationEnd,", {
ModalRoot: filters.byCode("headerIdIsManaged:"),
ModalHeader: filters.byCode("children", "separator", "wrap", "NO_WRAP", "grow", "shrink", "id", "header"),
ModalContent: filters.byCode("scrollerRef", "content", "className", "children"),
ModalFooter: filters.byCode("HORIZONTAL_REVERSE", "START", "STRETCH", "NO_WRAP", "footerSeparator"),
ModalCloseButton: filters.byCode("closeWithCircleBackground", "hideOnFullscreen"),
});
is this valid: SUPPORTS_COPY: x => typeof x === "boolean",
yea
the filter it expects is just (m) => boolean
I wonder when supports copy would be false
sorry I only use Internet Explorerโข๏ธ 8
when document.queryCommandEnabled("copy")||document.queryCommandSupported("copy") returns false
oh
when would that be false
lmao
that explains why I never heard of that function before
pushed changes
horror
my favourite function exported from ClipboardUtils.web.tsx
no clue
yeah
message accessories api done, time to pr https://toaster.sh/i/c03yotro.png
balls
i am uncreative with test strings
nono I get it I use balls too
I use cock
balls
Allows plugins to add custom message accessories. Useful for something like message link preview.
cock
isn't object type like empty object with no props
Record<string, any> my beloved
i am new to typescript thank you
np
xd
when can i type array as Record<number, any> ๐
you can

GUH
^
bro has never heard of an arraylike
when a mommy and a daddy love each other very much
Arrays are actually objects anyways
ArrayLike = object with length property and possibly integer indexes
yop
you love typeof []
its why you have to do Array.isArray instead of typeof
yea
no i know that but like
i figured that TS wouldn't like me doing that for some reason ๐
time to PR to change array types to this in vencord
@austere talon https://github.com/Vendicated/Vencord/pull/115 you will merge
Some people might want to use only one plugin feature instead of both
Question/Issue
Is it possible/how to load QuickCss.css in using the Browser extension?
When I open Vencord settings in the browser this is all I see, where is the QuickCss.css file supposed to be placed/located for the web version? The screenshot attached is all I see as options.
Motivation
A pretty Discord.
Vencord is love, Vencord is life.
Vencord web settings page:
 then build
Please let me know if teverything works fine
since these are all the same, you could use a .map like
commands: [
{ name: "name", description: "emoji" },
{ name: "other name", description: "other emoji"},
].map(data => ({
...data,
options: [OptionalMessageOption],
execute: opts => ({
content: findOption(opts, "message", "") + data.description
})
})
works for me ig
e2b622c feat(api): Message Accessories API (#131) - Cynosphere
6769de2 feat(api): add Clipboard entry in webpack commo... - Cynosphere
lmao
@austere talon look at this shit lmfao
hot
gonna use
lmao wtf
he just renamed and removed everything
and removed license info
hf!linvite Ks6ncwqxH8
dmca time? 
seems like they follow license info
they don't
they removed the entire licensing section from readme
this is why you add license headers to every file

lmao
github lines support when @mortal fractal
lol they switched from esbuild to webpack
amazing
changing the license moment 
Please let me know if teverything works fine
Thanks Ven-oniichan-kun-senpai, with Dev Build 4b1e96b everything works fine and looks beautiful.
It doesn't work in inPrivate (incognito) mode in MS Edge, but that's not a frequent enough use case for me to matter, just something I noticed, even after allowing the extension in private windows, could be related to rant bellow.
_Chromium is so annoying with unpacked extensions, that warning triggers me massively, I ended up having t...
BRO THEY CHANGED THE FUCKING LICENCE
It doesn't work in inPrivate (incognito) mode in MS Edge
This happens because if I remember correctly storage between addons arent shared from incognito and... not incognito
Lmaoooo
If you mean that your css from normal doesn't transfer over to incognito, that's likely to be expected as I don't use extension storage but instead IndexedDB
Alright I think I understand now, it makes sense. Thanks for clarifying.
LOl why
tharkicord moment
is this made by tharki actually hold on
dkd
Ah yes, another thing, when I click the Open QuickCSS FIle button in the inPrivate tab, the window that pops up is blank, not because the adress is about:blank as that also happens outside inPrivate windows, but it has no contents or text fields, it's just empty.
Like this:

lol it nuked the userscript header
ven loves https://github.com/google/addlicense
eslint plugin more useful
Please let me know if teverything works fine
Seems like it doesn't work with the userscript, just the extension.
watafak no array at
Modified the FxTwitter plugin to add options for multiple links since I don't like fxtwitter
yes.
because the userscript doesn't have cps bypass. This is a known limitation for now.
Use the extension or install a cps disabler and enable it for discord (https://github.com/PhilGrayson/chrome-csp-disable)
The repo uses eslint??
What does it matter that the repo uses eslint?
I have prettier as a vscode extension, the repo doesn't need to have it configured for it to work.
And also, most of the famous linters/formatters can detect the prettier-ignore comments, in the same way that prettier can detect eslint comments.
As long as the formatter you use is popular enough, it will support other formatters' comments.
Finally, it is just a fucking comment, what's your problem?
be nice
github have scary people
122 files changed whaaaaaa
you love to see reverting upstream commits instead of merging/rebasing them into your pr

this would like, break the updator no?
why remove custom path
this does like, everything except add a plugin
horror
this does like, everything except add a plugin horror
sorry i fucked up with one thing...
why im so stupid :<
75714b6 Windows: Patch host updater to reinject - Vendicated
This is fully untested because I don't have a Windows PC, so please test if everything works correctly
zamn
are you done
ye
just let people customize the url to anything they want 
Please let me know if i need to improve stuff ๐
what
how df do i go back
without -b
oh its git switch
clean code,
patch seems to work with unindent would be helpful if s1 can test fully.
remove if not being used
i don't think this is intentional
Thanks! But to be honest, this is pretty useless. Why Would Anyone Want To Talk Like This?
You can post it in the third party plugins channel if you want though
because kyza
where kyzamode plugin
Why Would Anyone Want To Talk Like This?
It doesn't capitalize each word in a sentence. It just does the first word of it.
Oh l see, my bad. In that case however it should be part of the KyzaMode plugin that already has an open PR
Alright! I didn't see it as it has a name that doesn't suggest it ๐
Thanks either way tho!
Maybe rename to addPunctuationm, as it doesn't return the current punctuation>
use switch in plugin settings,
this pr is probably not perfect
submit feedback/corrections thx
Please fix the linting errors flagged by the GitHub Action. Otherwise, LGTM.
This one doesn't have a space at the start of the description
i too Vencord Installer
true
can you not waitFor a module if you provide your own FilterFn instead of a prop array or am i just stuoid
jk i had stupid shidd in dev so it didnt pick up anything
installer should probably error propely though instead of exploding the Vencord Installer
you can
the filters.byProps and stuff just generate functions
a7dbd73 Windows: Patch host updater to reinject (#138) - Vendicated
good eslint rule
good plugin
guess im just really stupid
trollage
use lazyWebpack
go into src/webpack/patchWebpack.ts and on line 104 change <3 => <=3
People don't have to look through commits anymore, they can just see the NEW Badge on recently added plugins and activate the new features Vencord brings!
Note: common.mjs has been reformatted (automatically) by my formatter, I assume it previously didn't meet styleguide in the Contribution Guide
Ps. Feel free to bully and correct my horrendous code
 by my formatter, I assume it previously didn't meet styleguide in the Contribution Guide
it does meet it, you're just using prettier. Use the vscode formatter
Please use asynchronous fs apis from fs/promises
Not sure. It would probably look very weird, so maybe just limiting it to a specific height and hiding longer descriptions like you are doing now would be the most viable solution
is there anything left to fix ?
Hardcoding height was something I implemented originally for that exact reason.
this should be moved to the top level with waitFor
what the fuck is that
ยฏ_(ใ)_/ยฏ
what the hell is an activity
like playing games
horror
lmao
xd
would it be less horror to make ur own
what's the purpose of this function
seems kinda useless vs just calling DataStore.set(...) and just ignoring the result
@Vendicated i implemented requrested changes. please re-run workflow. thanks
technically this way of doing it is better for debugging
but yeah youre not wrong
xd
i hate how i need to manually approve workflow runs
is that actually a securty concern?
can u show an updated screenshot @tropic wagon
I mean if the workflow doesn't have a gh token or anything then its not a problem
but otherwise ppl can abuse it to leak your creds
I've approved a few workflows as well xd
highly doubt that
if the pull request is from a different repo then it'll use that repos tokens
i think
hm
I don't think Microsoft would have a feature that could let others steal ur tokens
that is perfectly centered oh my
Please use asynchronous fs apis from fs/promises
Updated & Resolved conflicts
only if the workflow is running within thet repo, which it wouldn't be since it's a pr on your repo
ebic
and it makes sense to use your repo's tokens in case you have external integrations, like setting PRs up on a staging instance or something
people won't have those secrets on their own repos
sorry for the pings idk if you get notifs if i don't ping you just want to get this pr over with lul
i think it's clean
your github is a different kind of fucked
409fb6f encoding binary doesn't return a buffer?? - Vendicated
looks good now. Please fix lint then it can be merged
please refactor this to use a variable and be less unreadable
Also fix lint and undo all the formatting changes, the easiest way would probably be to copy your changes, reset then paste them again
Could you make it so that clicking a Hidden channel doesn't do anything? Or it could open a modal with more info on the channel like its topic
Currently it tries to load it which sends bad api requests
the no-check? i could but 100s errors will appear
fix them then, silly!
u can ask for help u know

TypeError: Cannot read property 'localeCompare' of undefined
at VencordRenderer:31
at Array.sort ()
at VencordRenderer:31
at Object.useMemo (WebpackModule364448:2)
at Object.t.useMemo (62be08f0b264e26179c8.js:1642)
at VencordRenderer:31
at ua (WebpackModule364448:2)
at $s (WebpackModule364448:2)
at ku (WebpackModule...
This means you have a plugin with no name property. Make sure you don't have any files in your Vencord folder that shouldn't be there or do a fresh install
I am trying to write a plugin and specifically to make vencord compile and run without errors I removed all the content from plugin file. I have now removed the folder userplugins and everything works as it should. My fault, sorry(
all good don't worry! and if you want any help with making your plugin work just ask on the server
@Vendicated resolved (not fully), using @ts-ignore for prettier global workaround
- you can type globals via
ts declare const prettier: type - don't pollute the global, use https://www.unpkg.com/browse/prettier@2.7.1/esm/standalone.mjs:
const prettier = await import("https://www.unpkg.com/browse/prettier@2.7.1/esm/standalone.mjs");```
@halcyon salmon
anyway I will sleep I can help u more tmrw
kk
Alright, i added a small model when you try to select an hidden channel.
The topic section doesn't appear if there is no topic.



this is a mockup that i screenshotted from my browser
it works well to show what i mean just pretend that each tab is a different setting and you get it
my guy screenshotted his browser tabbar ๐
and showed his full name ๐
and has 3ds modding guides up for some reason ๐
actually it might not even be 3ds
i think it's dsi
so why do they have twilight menu up ๐
Why exactly? fxtwitter is objectively superior
yeah fair, wouldn't hurt to have options though
might just attempt to remake TextReplace from aliucord in this
@light crag why do you have two accounts btw
why do you have the same name
cause we're friend (and we found cool duck pics)
๐ฆ
I just used pnpm build and got this error:
> vencord@1.0.0 build C:\Users\NoName\Downloads\Vencord-main
> node scripts/build/build.mjs
fatal: not a git repository (or any of the parent directories): .git
node:internal/errors:841
const err = new Error(message);
^
Error: Command failed: git rev-parse --short HEAD
fatal: not a git repository (or any of the parent directories): .git
at checkExecSyncError (node:child_process:828:11)
at execSync (node:...
You shouldn't download the repository, follow this guide.
Oh, sh*t. Im dumb i tried again with CLONING the repo with git and it worked XD
By following the instructions
average bencord user
@light crag it still tries to navigate to hidden channels
which leads to a 403 api request and fucks up the member list
****
๐ฟ
๐ญ
Prevents discord from trying to fetch messages from hidden channels
not bloating globals anymore using esm package but dirty method again would be nice to have some more recoms
๐ซก
anyway uh
this is probably what u need
it's the only thing in discord that calls selectChannel(
just hook into this and check if that channel is hidden
if it is, show modal and return early
then u can alos remove ur selectChannel patch
Discord has a method for this

Oh I didn't know that, replacing it...
could you please show a screenshot also?
could you please show a screenshot also?

Not sure about the Text variants, I just copied the style from the topic info
please refactor this to use a variable and be less unreadable
Hopefully it's more readable now?
you can add yourself in the authors section if you want
New view after resolving conflicts:

50c0d47 feat(NoCanaryMessageLinks): Allow custom subdom... - romangraef
oh yeah i was gonna look but my browser cucked me
suck it echo
i will unconsentually do terrible things to you
bad browser 
lmaoo its not their fault
xd
is this compatible with Unindent?
i didn't test it fully but when switching to use tabs, Unindent does convert it to spaces so ig it does
...is this normal
yeah thats what i meant
it did a funny
seems to have fixed itself after closing and reopening cmd but still
Bro
dw nea is my e-onahole
that looks nice but what happens if the name is very long

Let me add some more space in between the text and badge
facts
6a7a1ef Vencord Standalone without git/node - Vendicated
Ok pushed all my changes as of now, not sure how to handle the hardcoded variable names
@hot pecan yo, i made NoCanaryMessageLinks and saw you pushed an update to it before I could add my name to the copyright part of the header. How should I list your name in there?
wdy,m copyright header
oh you mean just
replace the * Copyright (c) 2022 Vendicated and contributors
yeah
what name do i put for you
just nea? or...
Linnea Grรคf
Alright
if you want i can also post my full residential address
Nah
This introduces a new build flag "standalon"
Build behaviour:
- standalone true: Build universal platform build that fetches built files from github releases. This is what normal users should use
- standalone false: Build platform specific build (doesn't include code for other platforms like the windows specific updater hook) with old updater that uses git and node to update & build from source. This is what you would use to develop Vencord or Plugins
standalon
standalon
standalon
ya
Perfect
ff9d904 Update license headers in files created by Samu... - somerandomcloud
Ok I noticed a major bug, pushing a fix soon
Ven did you check the user agent actually gets sent
Is this going to be reviewed or should I go to the react approach https://github.com/Vendicated/Vencord/pull/142
tbh it's just a lot of simple regex to manipulate the components 
?
requests to github are sent with node https
that doesn't have the chromium limitations
i also updated pronoundb
y
i renamed all the virtual modules to have @ prefix
git-hash -> @git-hash
idk why i didnt do that from the start
They literally took nodejs and chromium, slapped them together, and now you have a "desktop app"
Why @
@ is usually used for scopes
the processes can actually interact and share data
what else do u like better
~git-hash
we're using @ for @components so it might get confusing
there
meow
my favourite virtual module is
import pkg from "~fileContent/../package.json";

it just gives u the content of that file as a string

github is drunk again
why not wrap the plugins in ` like before?
since this is the old state it's kinda confusing to read, so please rename to wasEnabled or something along those lines
8cf9863 enabled -> wasEnabled - MeguminSama
Not sure I understand what you mean. They are wrapped in `?

maybe something like this? I have no clue
Oh, <code> tags? That's doable.
ffbb525 fix: plugin dependencies not enabling (#150) - MeguminSama
Replaces plugin list link with a gist with a list of all plugins with authors and descriptions instead of having to go into each file
Why would you do this instead of just making a .md file in the repo (possibly in the docs folder)? We don't want to be linking to third-party resources for security reasons.
now also add a script to do this automatically
do these look like this? @umbral hedge
ye
mm

lmao why can i edit your reviews
huh
literally 1984
gonna change all of ur comments to im cute

its already automatic, but the way I did it is so dodgy i dont know how to make it a workflow
Script: https://github.com/somerandomcloud/vencord-plugin-list
oh god
why not just put a script in the repo
that reads the files and does a super basic regex search
or just use the already existing esbuild stuff to read plugins
or just actually load the files
Bad script
You guys cant read
Well you could just run it yeah
but you gotta run it with electron lmao

oh actually uh
just make a js file that imports @plugins
and does the readme generation
but actually I would push the generated stuff to a private gist on my account
so it doesn't spam repo with 3 trillion commits
Just as a small suggestion to this, what about a hotkey or smth similar so you can hide and show the hidden channels quickly if you, for example, stream discord or take screenshots
Arguably it takes a few seconds to disable the plugin and CTRL+R
just make people with new plugins run the script
so it changes with prs
yes thats what I was talking about
I am in vc the whole time and wont rejoin and restart discord the whole time only for that lmao
i closed it in favor of https://github.com/Vendicated/Vencord/pull/146
oh i see
You could also show channel topic
it has the same changes + more
is there really no better way than this workaround? I posted a method that will likely work on Discord earlier
You could also show channel topic
It's already there
Where exactly? I haven't seen it
As for the toggling suggested by Luna, I think the best solution would be to add css classes to hidden channels and make a seperate css toggler plugin that can do it on a keybind. This way you can also hide other things
if (!channel) return false;
discord crashes on startup for me without this
66716e85bf16d7f6a198.js:6052 TypeError: Cannot read property 'type' of undefined
at Object.channelSelected (VencordRenderer:14)
at vce (VM3171 WebpackModule583156:2)
at i.handleHistoryChange (VM3171 WebpackModule583156:2)
at e.t.addRouteChangeListener (66716e85bf16d7f6a198.js:4115)
at o.i.componentDidMount (VM3171 WebpackModule583156:2)
at Ss (WebpackModu...
bro fr thinks people will actually do that
make
And if you really don't want to then make gh CI check that
do u think we should have non minified releases of Vencord as well
Do you have source maps setup
yes
oh wtf
not for renderer tho
you minify builds
well
the default build is minified with no source maps
the build with pnpm watch is non minified with sourcemaps
i wonder if using https:// url for sourcemaps in renderer file would work
yes right?
the issue with that is that it would fetch bad sourcemaps for outdated builds
hopefully
i never thought of that
because the only other solution i know was inline sourcemaps
which is ugly cause it bloats size a lot
ah so its uh
vencord://./path/to/file.js
needs to be relative apparently
thats how webpack does it
mayb
mmmh
esbuild doesn't have an api for custom sourcemap url
oh
i can use external with footer
owo
How the fuck do I import ts variables
what
I genuinely cant figure out how to use ts
bru
horror
horror
horror
VeNcOrd LeAks tHaT I'M uSiNg It To dIsCoRd ThEy wiLl BAn MEEE
yay
but still meh stacktrace
I just think the sourcemaps aren't configured properly lol
o
then whats the problem, just the stack trace?
so good enough for me
Object.j
what even is that






9 online
17 members







