#πΎ-core-development
1 messages Β· Page 22 of 1
y'all are so mean it's literally holidays
yop
me when my completely unneeded addition isn't looked at and merged in 2 picoseconds!
π€―


ven will give me write access so i can deny PRs
soon
i will soon take over ven's vessel
None
None
Failed to load resource: the server responded with a status of 404 () ```
None
None
WebSocket connection to 'ws://127.0.0.1:1337/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Failed to load resource: the server responded with a status of 404 () ```
ayo
WOOOOOO
Did I ever tell you what the definition of insanity is? Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy. The first time somebody told me that, I dunno, I thought they were bullshitting me, so, boom...I shot him! The thing is... He was right. And then I started seeing, everywhere I looked, everywhere I looked all these fucking pricks, everywhere I looked, doing the exact same fucking thing... over and over and over and over again thinking, 'This time is gonna be different, no, no, no please... This time is gonna be different'.
didn't even extract everything smh
:p you could have told me and i would fix it
there's so much still inline
hm
but well, you could have told me which parts i forgot and i would do it
unless you was pressured to merge, in that case my problem is with lack of activity, so yea, i would be still happy to fix anything more
i forgor
i mean, you could still say in the pr that there were more places
like, what made you to merge a PR that you knew there were points missing
cause it doesn't matter
hah, interesting
and my second question, if you saw those missing parts, why didn't you told me before merging? i could have fixed instead of another person having to fix by me
that's the same question as before
guh
if your code sets the random seed as the unix time, rerunning it might change stuff
(well, if you also use random numbers, not just set the seed)
opens reddit and browse
opens discord and the 1st msg I see
what
how does this group of people have customs that i dont
@austere talon hit button
githu
make threwad on this
maybe after a message is too old?
or depends on client?
a.
what
discord moment
h
None
None
Failed to load resource: the server responded with a status of 404 () ```
None
None
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 () ```
Can anyone please port this?
I've tried but I really don't get what I'm doing and it's seriously the single thing keeping Vencord from being perfect for me.
d7627df Disallow running script as root - Vendicated
Port of RevealAllSpoilers from BD
@austere talon lol
webhook insane
ven insane
now move vencord repo to vencord org
uh yea it works
wtf
100kb link is not real it doesnt exist
Insane
virus link β οΈ
husk what
None
None
Failed to load resource: the server responded with a status of 404 () ```
None
None
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 () ```
i just wanted to see if it was possible
so i can put build analyzer links in releases
None
None
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 () ```
None
None
Failed to load resource: the server responded with a status of 404 () ```
when will ven merge
never
ive been waiting for like 3 weeks too
@austere talon VEN ITS BEEN 3 WEEKS
its not that complex of a plugin 
it doesnt take a month to test
We are doomed, we should vote for megu to be in charge.
@umbral hedge you will be the merger
wait uh is it not making a circular dependency
// components/DecryptionModal.tsx
import { decrypt } from "../index";
``````jsx
// components/EncryptionModal.tsx
import { encrypt } from "../index";
``````jsx
// index.tsx
import { buildDecModal } from "./components/DecryptionModal";
import { buildEncModal } from "./components/EncryptionModal";
None
None
Failed to load resource: the server responded with a status of 404 ()
Failed to load resource: the server responded with a status of 429 () ```
MessageDecorationsAPI (had no effect):
ID: 976805
Match: /(\(\).roleDot.{10,50}{children:.{1,2})}\)/
MessageAccessoriesAPI (had no effect):
ID: 30581
Match: /(\(\)\.container\)?,children:)(\[[^\]]+\])(}\)\};return)/
CallTimer (had no effect):
ID: 847719
Match: /(?<=renderConnectionStatus=.+\(\)\.channel,children:)\w/
IgnoreActivities (had no effect):
ID: 690109
Match: /\(\)\.badgeContainer.+?.\?\(0,.\.jsx\)\(.{1,2},{name:(?<props>.)\.name}\):null/
CommandsAPI (found no module):
ID: -
Match: ().source,children
BlurNSFW (found no module):
ID: -
Match: ().embedWrapper,embed
MessageLinkEmbeds (found no module):
ID: -
Match: ().embedCard
PlainFolderIcon (found no module):
ID: -
Match: ().expandedFolderIconWrapper
Settings (found no module):
ID: -
Match: ().versionHash
ViewIcons (found no module):
ID: -
Match: ().popoutNoBannerPremium
None
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 () ```
wtf did they do
().foo is now just .foo
fixing should be easy af
Z().foo -> Z.foo
insane
None
None
Failed to load resource: the server responded with a status of 404 () ```
BlurNSFW (had no effect):
ID: 30581
Match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g
BlurNSFW (had no effect):
ID: 30581
Match: /(\.renderAttachments=.+?(.)=this\.props)(.+?\(\)\.embedWrapper)/g
None
WebSocket connection to 'ws://127.0.0.1:1337/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Failed to load resource: the server responded with a status of 404 () ```
u fixed it by simply not running the test at all for it
yea
None
None
Failed to load resource: the server responded with a status of 404 () ```
None
None
Failed to load resource: the server responded with a status of 404 () ```
π₯
^ why you should always make wildcards in regex lazy
- .+
+ .+?```
.+ = match as much as possible, aka it will prefer matching 3000000 characters over matching 3 if possible
.+? = match as little as possible, after the first match it will stop searching
anyway I will look at prs tmrw 
sorry for taking a bit I was busy over the holidays and then had no motivation to look at them
figure it out
maybe css classes renamed
const getStatusColor = findByCodeLazy("STATUS_YELLOW", "TWITCH", "STATUS_GREY");
see if this is the right method
it should return css colours
if you pass in "online" it should return "var(--status-green)" or smth like that
imagine apologizing on discord
cancelled
the option to use the round OP tags for all would be great + maybe different colors per permission
actually should i just go over every plugin to make them use \i and $self

I probably forgot to remove () from replacement
yeah
**messageLinkEmbeds.tsx: **Line 155
replace: "function $1($2){var $3=$2.message,$4=$2.channel$5().embedCard$6})}\
().embedCard
need to be removed
should be just that, shouldn't it?
@verbal pumice
not on my pc rn or I'd do it
yeah i'll open a pr to fix everything
and this
no need imo
ok then
discord breaking changes speerun (any% glitchless) (on wr pace)
ayo forged commit??
what's up with the test being scuffed
The motivation for this change is that as a server moderator I've had it happen many times that isDeletePressed was incorrectly set to true and I ended up deleting messages of other users incorrectly which is extreme frustration
I don't understand that, why not fix the actual underlying bug then instead of adding a workaround?
I also don't like that the way you implemented it means that options require a restart. Why not do the check inside the handler instead so it immediately works ...
Isn't this already in webpack Commons as PermissionStore?
please update these patches to latest canary change! these modules no longer use functions, so the () must be removed
description: 'Don't show "BOT" text for bots with other tags (verified bots will still have checkmark)',
whats the point of this spread?
these patches are terribly unreadable, please make them more readable somehow, or why not extract this logic into a method and call that instead?
please use lazyWebpack to avoid unnecessary searches if the plugin is disabled
i think i disabled this rule so this ignore should be obsolete (?)
the rule is a good idea to catch bugs but annoying often so I think I did
Why use an interval? I would instead calculate the time until next theme shift and use setTimeout instead. If you extract it into a method, it should be fairly simple to restart the timer on settings changes
1713450 [PlatformIndicators] Fix Chat Badges in DMs (#367) - HypedDomi
lmfao
did u even test ur plugin @unborn garnet
What do you mean
LOL
(ill fix it no need to)
Alright
read β’ββ’β’ββ’βββ‘β’ββ‘β£β’βββ’ββ’ββ’ββ’β‘β’β‘ββ’ββββ‘ββ’ββ€βββ‘β’β’ββ’β‘ββ’β’β‘β£ββββ’ββ£β‘ββ’β£ββ’ββ’β€β’β€βto explode

works
Ya, did test the plugin
Just not that feature since it was very last minute
fair
Yop
Message Indicator isn't supposed to have one
Oh
i will make it be the same as the other buttons there
testing ββ€ββ‘β‘β€β’β£β’ββ€β’β‘β£ββ’ββ‘β’β£β‘ββ£β’β‘β’β’ββ’β‘β€ββ’ββ’β‘β‘β’β€β’β‘β‘β‘ββ’β£ββ’β‘β‘β’β‘ββ’β‘β‘the test
okay so
you just modify the content here right
i see that you push to an array
is it an array of html elements?
as in, can I push a span?
oh wait totally
what am I saying
i will add tooltip to that as well
yop
fear
otherwise people will be confused
why they have weird locks
without the tooltip i mean
i also added some padding
so its not hugging the message content
Okay looks good from my side now, but I did a bunch of changes so please see if you still like everything
ya

ikr
Horror
fix
I am
None
None
Failed to load resource: the server responded with a status of 404 () ```
None
None
Failed to load resource: the server responded with a status of 404 () ```
what a day. so much prs closed
https://github.com/Vendicated/Vencord/commit/15aa2299c3220aa5964981b0958338b6fad1d5b9
Add Ctrl+Q Exit shortcut on Windows
How to disable this shit? I don't want my discord closing when I do that on ANY OTHER APP! WTF
I don't understand that, why not fix the actual underlying bug then instead of adding a workaround?
If I knew what the bug was, sure. But I have absolutely no idea how to debug the issue either because it doesn't always happen and I cannot reproduce it actively.
I also don't like that the way you implemented it means that options require a restart. Why not do the check inside the handler instead so it immediately works after toggling?
I tried it without restarting and that didn'...
Yeah idk why this was added as a default feature
Moving to feature requests
Can anyone please port this?
I've tried but I really don't get what I'm doing and it's seriously the single thing keeping Vencord from being perfect for me.
Moving to feature requests
ven loves windows users
Allow you to view users, roles and channels permissions.
here are some screenshots from how the betterdiscord pluggin does it:


It has also been very well implemented with the showhiddenchannels plugin, here...
but rly, why was that added? does this make discord to fully exit?
o yea it looks like. but still, why making this shortcut windows specific
unless I'm stupid and missing something I did it on my fedora xd 
what
idk
i just alt+f4 like I would in any other program
making it global was probably a mistake
but it should at least be toggleable 
yeah just make it ctrl + d
Ah, I didn't notice this works even when the app isn't focused, that's of course not good
because discord has it on Mac and Linux out of the box
and many other apps have it on Windows
I didn't mean to make it work outside of windows
I've never used CTRL+Q to close an app on windows xd
me too
i would very much like to disable the shortcut on Linux i press it on accident way too often xd
how
global keyboard shortcuts for my DE and hitting ctrl instead of win key
also I'm just bad at typing
that's why I ported it
I didn't mean to make it work in other apps that's my bad

i cant believe he copied my plugin π
Should probably properly handle when the command is used on a DM
ok
None
None
Failed to load resource: the server responded with a status of 404 ()
can u show a screenshot? @agile laurel
None
None
Failed to load resource: the server responded with a status of 404 () ```
oh shit yeah i meant to run the changes by u first i am just out of it today
@austere talon
less flat
i made it have a darker background color and deeper backdrop shadow on hover
also made the settings cog lighter when you hover over it so it actually looks responsive
before it hardly changed
i think ui should be responsive to everything you do at least subtly
On my computer, ctrl q does another important function, so I need to turn it off somehow
i have a lot more ideas for the ui but im struggling a lot with motivation atm so cba
The hover one doesn't look great imo
It might be better to have the same BG for both
i just copied discords server cards
change in appearance on hover doesn't make much sense when there's no interactivity with what you're hovering over
if I hover over the card and it changes, I usually expect that to mean that I can click on it and something will happen - that's not the case with the plugin cards (unless you click on the title, which in turn toggles the plugin)
its less misleading than it is right now lol
theres a random cursor: pointer on the whole card selector in the css
for no reason
if yall do anything please change that lol
but this is fair i can get behind this
yeah I was going to mention the cursor being wonky but it wasn't something you did so I didn't
clicking the card was supposed to open the settings/info
someone changed it at some point and never changed the css
yeah clicking any of the card used to open the card
idk why that was changed at some point, maybe an accident
- Plugin is used to make stream previews bigger
- https://github.com/jaimeadf/BetterDiscordPlugins/tree/main/packages/BiggerStreamPreview
- This plugin can be used by holding CTRL and clicking a message to delete it
- Source: https://gitlab.com/_Lighty_/bdstuff/-/raw/master/public/plugins/QuickDeleteMessages.plugin.js
- This is a BD plugin that I think is worth porting it to Vencord
- Src: https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ImageUtilities/
already a thing, MessageClickActions
Reverse image search already suggested
Galleries already built into discord (though could be improved possibly)
Zooming already suggested
of course you could just make clicking the card toggle the plugin
thereby making all my changes valid π
bad
Updated version of oneko which disables pointer Events.
- Improving a MessageClickActions plugin by implementing a way to change the button for deleting messages, for example from DELETE to CTRL
95df164 PluginSettings: Try to improve performance - Vendicated
I don't like this since this will break things if someone has their node in /usr/bin or similar. Why not add /usr/local/bin to PATH instead and let the system handle the lookup?
like
if (process.platform === "darwin") process.env.PATH = `/usr/local/bin:${process.env.PATH}`
then just use node like before
bad change
The built-in Updater doesn't seem to work properly on macOS:
I have node, npm, and pnpm installed and in PATH:
β― node -v
v18.7.0
β― npm -v
8.15.0
β― pnpm -v
7.13.4
Feel free to let me know if I can provide anything more on this issue :)
Oh, seems like there's already an open PR for this issue: #391
adds a simple command /silenttype so you can toggle whether the plugin is enabled without having to restart
way cooler would be to add a chatbar button like invisiblechat
I'm kinda against adding a button cuz it's not something you toggle often but yeah maybe could be an option
I agree tbh but there were many people requesting this and the BD plugin has it that way
but yeah option would be cool
I just realised inputType: ApplicationCommandInputType.BUILT_IN, is probably not what I want
BUILT_IN = no automatic response, but u can still manually respond
BUILT_IN_TEXT = automatic response with what you return, if you return nothing it bugs out and sends your command as text. Meant to make this cancellable but it was such a pain I have up
avoid the rest
oh I thought it changed the input box and that's why it opens text input for boolean
for boolean it should just make u type true or false I think
that should be documented I think cuz I couldn't tell at all
yeah that's what it's doing right now
slash commands so bad
I enabled invisible chat and I don't see the chat button mm
didn't fail to patch though
I just enabled invisible chat and reloaded and the button shows up
it got display: none'd by removing nitro ads css

None
None
Failed to load resource: the server responded with a status of 404 ()
None
None
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 () ```
JSHandle@error
JSHandle@error
JSHandle@error
invisible
JSHandle@error
you love
ye
**generateReport.ts: **Lines 44-47
function maybeGetError(handle: JSHandle) {
return (handle as JSHandle<Error>)?.getProperty("message")
.then(m => m.jsonValue());
}
404 because it never happened 
π€―
None
None
Failed to load resource: the server responded with a status of 500 ()
Failed to load resource: the server responded with a status of 404 () ```
IgnoreActivities (had no effect):
ID: 185884
Match: /this.renderLastPlayed\(\)]}\),this.renderOverlayToggle\(\)/
None
Failed to load resource: the server responded with a status of 500 ()
Failed to load resource: the server responded with a status of 404 ()
Failed to load resource: the server responded with a status of 500 () ```
It's jover
discord internal server errors be like
it has 3 patches what do you mean π
I changed it remember
grrrr I gotta make this patch better discord keeps breaking it

oh lol
didn't it use to have like 15 replacements
oh, big
None
None
Failed to load resource: the server responded with a status of 429 () ```
IgnoreActivities (had no effect):
ID: 185884
Match: /this.renderLastPlayed\(\)]}\),this.renderOverlayToggle\(\)/
None
Failed to load resource: the server responded with a status of 404 () ```
kek they just completely removed renderLastPlayed and renderOverlayToggle
Only merge this PR when Discord pushes the update to stable
5aea8f5 Many QoL Improvements (see extended description) - Vendicated
BRUH
? why, this already exists in the client

None
None
Failed to load resource: the server responded with a status of 404 ()
IgnoreActivities (had no effect):
ID: 185884
Match: /this.renderLastPlayed\(\)]}\),this.renderOverlayToggle\(\)/
None
Failed to load resource: the server responded with a status of 404 () ```
can u commit this I won't get back home in hours
if ur gonna add a button can u make its existence toggleable because i personally don't need to toggle it so a button would just be annoyance to me
IT IS TOGGLEABLE
man don't look at me like i'm gonna read the code
it's gonna get wicked
mober data got real
lol
? why, this already exists in the client
The plugin is to hide spoilers by default, but then reveal all in a message or in the chat when needed (like when there's multiple spoilers).
guhhh useless almost all wm can do this
insane
should be in try catch in case user corrupts settings, like from where u removed this
Should I remove the other try catch or keep that too
you will review
@austere talon merge #400 and #401 NOW
suggestion
.+ means match as much as possible which will absolutely explode module, .+? makes it lazy, aka match as little as possible
@austere talon MERGE
IgnoreActivities (had no effect):
ID: 185884
Match: /this.renderLastPlayed\(\)]}\),this.renderOverlayToggle\(\)/
None
Failed to load resource: the server responded with a status of 404 () ```
IgnoreActivities (had no effect):
ID: 185884
Match: /this.renderLastPlayed\(\)]}\),this.renderOverlayToggle\(\)/
None
Failed to load resource: the server responded with a status of 404 () ```
b39cbcd fix(IgnoreActivities): Fix for upcoming change ... - Nuckyz
match: /\.isTrustedDomain=function\(.\){return.+?};/,
how
how what
To get the new devtools
Vencord Settings -> Open Settings Folder > Extension Cache > Delete fmkadmapgofadopljbjfkapdkoienihi
Then restart
This PR creates an alternative to the options field that is more typesafe: a new settings plugin field that takes in settings, which can be defined using definePluginSettings
You can check the changes to see shiki as a usage example, but a [^1]basic overview:
const settings = definePluginSettings({
someText: { type: OptionType.STRING },
amount: { type: OptionType.NUMBER },
}, {
// value is implicitly a string
someText: {
isValid(value) { return value.length ...
Why not 4.26? 
The actual flag is --enable-speech-dispatcher.
? "Install speech-dispatcher or espeak and run Discord with the --enable-speech-dispatcher flag"
Narrator volume does not take effect for me. Maybe it's a limitation with espeak.
Also an idea for this PR to get a more natural voice on Linux: Use Google Translate for TTS, like https://translate.google.com/translate_tts?ie=UTF-8&tl=en-US&client=tw-ob&q=joined%20general
omg token logger hidden in vendicated/random-files
you love stupit dev adding good first issue label instead of fixing it
lazy
Add files via upload
tokenlogger
Could you add some jsdoc to these properties?
There's a lot going on here, but code works & looks fine to me.
some considerations:
- the reason I named options options and not settings was because I wanted to keep the possibility open to later have this.settings refer to the actual settings object. I guess this is kind of obsolete now so it's okay to rename it though
- I don't like there being both options and settings now, we should try to migrate the old code to not be confusing and have less deprecated code
- the settings update filter path is flawed, what if your setting contains a period? that issue already existed before the pr but I realised that just now and we should probably fix it
vapo is the anti jsdoc
tbh yeah we could migrate everything
I thought that maybe we should do it in a different PR tho which is why I didn't mention it
There's a lot going on here, but code works & looks fine to me.
I tried to make it completely opt-in and compatible with the options field type-wise. Runtime-wise the settings field is just an alias for options at the moment.
- this actually makes sense yea
- yea i agree thats why i added
@deprecatedso our ides would cross it out as a reminder - thats true we probably should fix that, i'll add a TODO
TRUE
the
TODO comment is my favourite fix
TODO:
now you can TODO like a master
make eslint error on TODO comments
i use this
@austere talon what were you thinking
thinking about the letter j
j
what was I thinking indeed
idk why I added my name there
I think cause I said "I"
I put my name in work code TODOs
same
gotta assert dominance and claim your territory
yop
TODO(vap): hi
fixme
// FIXME(vap): this code works fine, someone please fix me i needf hlep```
you will add other name in todo comment and git blame-someone-else
discord has more TODOs than files
TRUE
STAN
adding other people's names in todos is probably the most passive aggressive thing you could do
ven will replace all // TODO with // TODO(megu)
todo: stan
i will espionage
// TODO: Add token lagger
dzshn:git/ % rg TODO | wc -l
917


added the TODO
Add the ability to bypass the upload limit, by automatically partitioning the data and then automatically putting it back-together on the other client as 1 file to download sorta. Wouldn't be that useful, just a cool idea.
where did you got all of those comments?
discord
didn't that got removed after compilation?
megu is discord employee
yop
discord is doing internships now
wait fr?
is this one of those america moments
probably
that's kinda pog ig
it all comes from nitro money
wtf
discord will add non US jobs immediately
@umbral hedge are u in america
thought so
ae50424 Update Windows Update patcher - Vendicated
Migrates the Windows update patcher to the electron 17+ method
Untested, testing this is painful
0bec4e3 Remove more recent electron DesktopCapturer wor... - Vendicated
maybe you should mark as a draft since it is untested?
well, the settings aren't as good, but yes
1238c49 Always use new method, programdata fix - Vendicated
Basically, it adds a way to put speech-bubbles on top of the provided image
pog
so
since you reuse a lot of stuff from petpet
why not
- extract them to webpack commons
- add an upload function to utils/discord that wraps promptToUpload
@slate solar
would be cool
Hmm, good idea, you're smarter than me 
i should delete this PR after merging for the irony of PR 404 being a http 404
yop
jfc why does my heartbeat quicken when i hover over "Create pull request"
oh screw it im just gonna do it
This pull request adds a plugin to add a custom rich presence.
Here's an example of a rich presence made by this plugin:

Please do let me know if anything is missing, broken, or if you just want something changed.
do 
NOOO you can only delete issues :(
1984
GODAMMIT I SAVED THE PAGE BECAUSE I THOUGHT YOU WERE GONNA DELETE IT 
NOOO
bro fr π
which one is preferred?
merge better for canonical commit history
merge commit
no lol
thank god
you dont have to sign but you really should
you should, but don't have to
lemme add it onto my infinite TODO list
give me one sec and i will tell you a compelling reason to sign your commits
ok
theres no way to tell that it's not actually by you
if you used signing it would say Unverified
committing in someone elses name is really simple
git --config user.email theiremail
git --config user.name theirname
i remember when I tried it once with a friend
it failed somehow
(proof i suck at github)
what the fuck is this suppsoed to be
DONT
Also an idea for this PR to get a more natural voice on Linux: Use Google Translate for TTS, like https://translate.google.com/translate_tts?ie=UTF-8&tl=en-US&client=tw-ob&q=joined general

real
None
None
Failed to load resource: the server responded with a status of 404 ()
None
None
Failed to load resource: the server responded with a status of 404 () ```
SHUT UP
BE NICE
so bad
??
Failed to load resource: the server responded with a status of 404 ()
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 ()
oh i thought so bad was in response to that comit
xdxd'
Failed to load resource: the server responded with a status of 404 ()
Failed to load resource: the server responded with a status of 429 ()
Failed to load resource: the server responded with a status of 404 ()
what the fuck was the
fuckin flag
HUSk
i cant find it
The actual flag is --enable-speech-dispatcher.
i found
5d38fca Use GUI installer for pnpm inject/uninject - Vendicated
This replaces the node inject scripts with a small wrapper that downloads the latest Installer and runs it with the current working directory as Vencord dir
This way, the dev installer is never outdated.
TODO: The installer will currently force update Vencord before patching, need to add an environment variable to disable this
bruh
WHY THE FUCK DOES RENAMING BRANCH CLOSE PRS THE FUCK
sorry for the stupid naming.
OptionalMessageOption and RequiredMessageOption have a hardcoded name and description of "message"
however, the function i added gives full customizibility.
this is pointless though, why not just specify the option as an object instead of using this function
uh i just thought it'd be nice if we had something like this
You probably want to update the copyright header, and maybe add type annotations.
this is pointless though, why not just specify the option as an object instead of using this function
Dont really disagree, but like its also pointless to grab the Required and Optional from discord code instead of just using objects for that.
No it's not, by grabbing them from Discord they're localised
Isn't CustomMessageOption intended to be text, in which case the type is always 3. Although a better option in my opinion would be just to expose all of the Application Command Option Types and allow end users to specify the type themselves.
Oh, the localization is nice.
Actually, i feel like CustomMessageOption is also a wrong name, since this isn't a message option, just a generic Option constructor with some defaults?
I still don't really get the point of this, why would I want to use
options: [CustomMessageOption("option", "cool", false)]
instead of
options: [{
name: "option",
description: "cool",
required: false
}]
first time i tried to add a parameter it took me a while to find the correct object. you could call this skill issue but i feel like its nice to have a way for beginners to have an easy function to work with
if they don't find the object (I assume you mean the option types) they wouldn't find this function either, no? Also if you can't figure out how to do something it usually helps a lot to look at other plugins
I think the better option is just to have the application command option type enum exposed in some way (like OptionType.STRING, OptionType.ROLE, etc.). the Option type is already enforced im pretty sure.
fair enough, i will now disappear
it is exposed
oh, wow then that pr really is completely pointless
**types.ts: **Lines 27-39
export enum ApplicationCommandOptionType {
SUB_COMMAND = 1,
SUB_COMMAND_GROUP = 2,
STRING = 3,
INTEGER = 4,
BOOLEAN = 5,
USER = 6,
CHANNEL = 7,
ROLE = 8,
MENTIONABLE = 9,
NUMBER = 10,
ATTACHMENT = 11,
}
long name
nah its the same thing as in api docs
i just knew that echo struggled with defining that type last time which inspired that pr
yup
**types.ts: **Lines 41-47
export enum ApplicationCommandInputType {
BUILT_IN = 0,
BUILT_IN_TEXT = 1,
BUILT_IN_INTEGRATION = 2,
BOT = 3,
PLACEHOLDER = 4,
}
why do some of their enums start with 0
while others start with 1
so infuriating
discord so sane
new Date().getMonth() moment
fun fact Javascript Date api is a copy of Javas Date api (https://twitter.com/BrendanEich/status/481939099138654209) which deprecated half its methods due to being terribly designed and was replaced by the Calendar api
@jasonstehle In case it helps (it doesn't for most), JS's Date is a copy of Java's JDK1.0 (1995) java.util.Date. Made it look like Java...
Java fixed their shitty date apis but in js world we're still stuck in stone age
I want to kill brendan
he had to apparently
in his defense
he had 10 days to make js and was told to make it look like java
I want to kill brendan and whoever thought of making him do that
can't wait https://github.com/tc39/proposal-temporal
cant wait for tc39 to steal Instant, LocalDateTime, OffsetDateTime, ChronoUnit and all that as well
and i mean i cannot wait, like that would actually be dope, the modern java time apis are really nice
good
i love leap seconds
they'll be gone soon
The year 2035 for eliminating leap seconds was chosen considering Russia's request to extend the timeline, since, unlike the United States's global navigation satellite system, GPS, which does not adjust its time with leap seconds, Russia's system, GLONASS, does adjust its time with leap seconds.
i am worried that this will remove the ability to use the local version of Vencord for local development. is that the case?
also, it is better to include switches to Vencord's GUI installer so automation tasks can be perfomed
i am worried that this will remove the ability to use the local version of Vencord for local development. is that the case?
I mean, if it is the case, you can always manually inject it. probably a pain, but possible.
i am worried that this will remove the ability to use the local version of Vencord for local development. is that the case?
also, it is better to include switches to Vencord's GUI installer so automation tasks can be perfomed
it does not. it runs the installer with the VENCORD_USER_DATA_DIR envvar pointing to the build folder.
clever
oh okay. what about the GUI switchers?
what's a gui switcher
i am worried that this will remove the ability to use the local version of Vencord for local development. is that the case?
have you read the pr description?
"runs it with the current working directory as Vencord dir"
the only limitation of this change would be that windows 7 or 32 bit users could not use it anymore. But quite frankly, I do not care
me not having a better name to doing smth like ./VencordInstaller --uninstall --path "path/to/asar"
why would it do that
I can add a cli interface but are you really too lazy to click one button
^
and there's no way of knowing which install u wanna patch anyway
if u have multiple
my only dislike of the installer was the envvar thing, but because the PR makes it add the envvar automatically, my complaints are resolved
I'm happy to click an install button
have you read the pr description?
"runs it with the current working directory as Vencord dir"
oh yeah. i didn't get it well enough at first, that's why i've asked about
the only limitation of this change would be that windows 7 or 32 bit users could not use it anymore. But quite frankly, I do not care
is it a limitation of the UI lib used on the installer?
I cant wait for #407 to be merged. I had to go to hell and back to patch discord with a dev install
pnpm buildWeb 
why's that?
explode
[Vendicated/Vencord] New star added
6e3893d VENCORD_DEV_INSTALL env variable disables updat... - Vendicated
woa
pog
real
trolled
L
usage: link [options] main.o
TROLLED
mac users do not exist
linux users do not exist
windows users do not exist
soon
everyone uses templeos now
windowd builds take ages apparently
so true
ah
TROLLED
thats the old one
yeah i figured xd









