#🧩-plugin-development

1 messages · Page 12 of 1

cedar olive
#

why isn't LFE being properly executed @dull magnet

#

it works fine if I do the same args but outisde the convert.sh script

trail ginkgo
#

@green vessel guh my bug the whole time

#

was actually a bug in CC

#

death

#

and now github is 500ing

#

wait why am i here

potent fox
#

@trail ginkgo why you re here

trail ginkgo
#

@potent fox @potent fox @potent fox

potent fox
#

hi

covert nimbus
#

@potent fox @potent fox @potent fox

potent fox
#

WHAT

oblique prairie
#

@potent fox @potent fox @potent fox

potent fox
#

GO AWAY

#

STOP PINGING

opal fern
#

@potent fox @potent fox @potent fox

potent fox
#

OH GOD

#

I cant understand these people

#

am I the problem

dull magnet
#

lfe is an exe?

#

maybe append .exe to the bin

potent fox
#

@dull magnet arent you a windows fan

viral roost
#

windows #1 ☝️ ☝️ ☝️

cedar olive
#

and I will not download linux just for this lol

dull magnet
#

wsl

cedar olive
#

maybe

cedar olive
#

@magic sorrel what does this mean

magic sorrel
#

open the modal then click on the image
it will close the image yk
and thats not very nice when your trying to zoom in

cedar olive
#

oohh

magic sorrel
#

that setting basically prevents discord from doing that

cedar olive
#

maybe explain a bit better

#

it's confusing

magic sorrel
#

as you can see when i click on the image it will close the modal
and in order to zoom into the message you need to click :P

cedar olive
#

ultra pog plugin

magic sorrel
#

:D

cedar olive
#

you are setting the magnifier cursor with css right

#

like is it doing it

magic sorrel
cedar olive
cedar olive
#

whatever

magic sorrel
#

also you made me realise my css is garbage
theres a line behind the image
leme try fix it real quick

magic sorrel
cedar olive
#

@magic sorrel you should switch the scroll controls to the opposite

magic sorrel
#

i dont understand

#

which one

cedar olive
#

scrolling up zooms in

#

scrolling down zooms out

#

it makes more sense

magic sorrel
#

oooooooh

cedar olive
#

other than that I approve

magic sorrel
#

OOOH wait
i just assumed scroll down would increase zoom because you scroll down to see more of the page and scroll up to go back

ill just add a invert scroll option

cedar olive
#

I think you should make the default the way I said

magic sorrel
#

sure

#

should it be the same for increasing the lens size? @cedar olive

cedar olive
#

ya

woven lion
#

@dull magnet this is probably how we're gonna have to end up doing it

#

i dont think we can rewrite settings to be async

proud cargo
sonic badger
#

i just rewrote that plugin i was working on a while ago

#

gitPreviewV2.ts 19-50

import { addPreSendListener, MessageObject, removePreSendListener } from "@api/MessageEvents";
import { Settings } from "@api/settings";
import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";


const PROXY = "https://cors.consumet.stream/";
const GIT_REGEX = /^(?:https?:\/\/)(?:www\.)?([^/]+).([^/]+).([^/]+)(.+(?=.*\/).)+([^#]+?(?:\.([^#]{1,4})?)?)(?:#L(?:ines-)?(\d+)(?:-L?(\d+))?)?$/gim;


interface Keys {
    url: string;
    host: string;
    user: string;
    repo: string;
    path: string;
    file: string;

    // Optional
    ext?: string;
    lineStart?: number;
    lineEnd?: number;

    // Post-processed
    rawUrl?: string;
    code?: string;
    codeLang?: string; // Highlight language for code block
    codeBlock?: string;
    linesLabel?: string;
}

https://github.com/hunt-g/vencord-plugins/blob/master/gitPreviewV2.ts#L19-L50

#

along with the async messages pr

#

all works well 👍

trim igloo
sonic badger
#

because github has a cors restriction and blocks the requests from discord

delicate totem
#

cors proxy my beloved

#

it lets me get someones ip when someone types the konami code on my website

gentle marten
#

i don't think the code blocks plugin was designed for light mode lol

woven lion
trail ginkgo
gentle marten
trail ginkgo
gentle marten
#

Oh you made it?

sonic badger
# dull magnet it doesn't
Access to fetch at 'https://github.com/hunt-g/Tokyo-Night/raw/main/tokyo-night.theme.css' from origin 'https://discord.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://render.githubusercontent.com' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
dull magnet
#

use the correct link

sonic badger
#

it's not rly incorrect per se, but will do. thanks

#

btw I am going to rewrite the url parser/builder, but afterwards do u think it would be worth contributing?

#

oh, and is there a way to send messages as files with vencord?

woven lion
#

perfection

#

this wasnt working for quite a while xd

woven lion
#

@trail ginkgo i did some ui cleanup btw

#

cc @dull magnet

#

delete cloud data doesnt have one but i thought it was appropriate for that one because its a "force sync everything from the cloud"

trail ginkgo
#

it looks pretty now

woven lion
#

yee

#

it doesnt look like dev ui xd

#

ive pushed it to my fork, feel free to play

south ridge
#

@dull magnet can i make addButton async? i need to do some operations that require await

dull magnet
#

what's addButton

south ridge
#

minipopover

#

i want to do something like this

dull magnet
#

see if u can idk

#

but also im not accepting that plugin

south ridge
#

what

#

why

dull magnet
#

too spammy and useless

#

people constantly spamming pgp stuff in chat is annoying

south ridge
#

youre blocking pgp messages already

#
  • theres an option to only send it as a file
dull magnet
#

yes, so why would I merge a plugin that's literally blocked from use here 😭

#

the files are also spammy and annoying

south ridge
dull magnet
#

I plan to make it so that users just have to download a js file from ur releases and add it to a folder

south ridge
#

awesome

#

ill just trash the plugin then cirno_shrug

strange igloo
#

tbf id use the plugin so i can get a basic understanding on howt he shit works without doing the smart thing and reading a documentary

strange igloo
potent fox
#

@south ridge sorry its my fault ven couldnt sleep for 5 days after the day I made chat encryption plugin

south ridge
#

WHAT

potent fox
south ridge
#

how

potent fox
#

one day I was working on chat encryption plugin on aliucord.then I pushed my changes to github

#

and even though I didnt release the plugin because it was on my github people was able to see and download it ,and they did

#

then when someone sent private key on public chat suddenly 10-20 people start sending their own keys

#

as selfbot

#

because I wrote it that way trolley

#

aliucord encryptdms incident never forget

delicate totem
#

why the hell

south ridge
#

if it detects a private key, all others who have the plugin send a fake private key as well

gentle marten
#

what the fuck

south ridge
#

LMAO

north gull
#

Also once in chat when I sent one 3-4 people were instantly replyinh

south ridge
#

Oh that's hilarious

north gull
#

Aliucord lore is epic

#

Nitrospoof incident, huskbot incident etc..

covert nimbus
#

stop you're making me want to read through aliucord messages

paper mountain
#

So

#

There is this app called MusicBee

strange igloo
paper mountain
#

And there exists a plugin for it that can display currently listening information, but, I saw the custom rpc thing that make things say "Listening to" rather than "Playing". How would be the best way to make either a vencord plugin or use the GameSDK to do something like this?

strange igloo
#

@delicate totem theyre stealing your idea

paper mountain
#

Just asking for some guidance

strange igloo
#

dz seems to know about it

paper mountain
#

dz?

#

Who is dz?

green vessel
#

I have a plugin planned that'll let you change activity types and names of any activity you want

#

not feeling exactly well now so no idea when

paper mountain
green vessel
#

app id or name yea

paper mountain
#

Hopefully that doesn't mean this one is fucked because it currently uses the deprecated Rich Presence api

paper mountain
sonic badger
#

how do you guys have your vencord repo setup? are u in a fork with the upstream added?

delicate totem
delicate totem
paper mountain
delicate totem
#

I just need to change a few things

#

hm?

#

no

#

it's a vencord plugin

#

just need to fix a few bugs

#

I've been sleeping too much lmao

#

I also need to figure out how to use fucking image urls because it's some black magic

paper mountain
#

Lmfao

sonic badger
#

can somebody run git branch -a in their vencord branch, and send output for me plz

south ridge
#

can somebody run getToken() and send output to me plz

sonic badger
#

v funny

sonic badger
#

my fork was a mess

#

i got it figured out now tho I think

#

besides not being able to rename a branch that's already pr-ed

#

mmm my userplugins dir seems to have disappeared tho

delicate totem
#

I fucking hate discord RPC

#

GRAHHHH

opal fern
lofty crypt
#

@granite wharf minor bug (?) with MessageLogger

opal fern
#

I mean

#

Doesnt really make a difference tbg

#

Tbf***

trail ginkgo
opal fern
trail ginkgo
sonic badger
#

both ig

covert nimbus
#

am i the only one having problems with the notifications api not showing notifications when you've clicked one that has an onClick function? system notifications work fine but the ones in discord don't

covert nimbus
#

forgot to send the code for sending the notification https://cdn.discordapp.com/emojis/1060919735560196147.webp?size=48&quality=lossless ts showNotification({ title: `Keyword alert by ${ev.message.author.display_name ?? ev.message.author.username}: ${keyword}`, body: ev.message.content, richBody: <KeywordText keyword={keyword}>{ev.message.content}</KeywordText>, icon: `https://cdn.discordapp.com/avatars/$%7Bev.message.author.id%7D/$%7Bev.message.author.avatar%7D.png?size=128`, onClick () { const link = "/channels/" + guild_id + "/" + channel_id + "/" + id; // focus discord window.focus(); NavigationRouter.transitionTo(link); }, onClose() { // do nothing. this was an attempt at fixing the issue but clearly didnt work return; } }).then(); // ^ I love webstorm linting

#

guh discord url encoding in codeblocks

#

okay yeah i give up because discord clearly has no idea its in a codeblock

#

and now its suddenly working without fail???

#

i think its related to timeout

#

because the only change was the timeout i set in settings

lofty crypt
lofty crypt
covert nimbus
#

webstorm screams at me if i ignore the promise husk

#

ig i could just ignore it

grim hare
#

void it kidaThumbsUp

eternal spear
#

is vencord have icon?

trail ginkgo
eternal spear
#

but do vancord have icon like betterdiscord have this?

strange igloo
#

yes

eternal spear
#

can you show that?

covert nimbus
#

there it is

strange igloo
#

yop

covert nimbus
#

alternatively, use my unofficial vencord icon

strange igloo
#

real

woven lion
#

the official vencord icon

trail ginkgo
woven lion
#

factually incorrect

trail ginkgo
covert nimbus
#

this icon is not real

woven lion
#

@trail ginkgo the new vencord icon

trail ginkgo
#

WHERE

woven lion
#

right here

#

huskcord

trail ginkgo
#

vencord logo

woven lion
#

vencord logo

trail ginkgo
woven lion
#

redhat openshit

trail ginkgo
#

NO

gentle marten
opal fern
#

test

cedar marsh
lofty crypt
azure mason
#

thats also what the installer uses

gentle marten
#

someone should design a logo

woven lion
#

nah

gentle marten
#

might have to clean up the trolley a bit

paper mountain
#

God no

lofty crypt
#

what are you saying Atvaster

#

p epic work man!

gentle marten
lofty crypt
#

needs a better name

gentle marten
#

uhh

lofty crypt
#

:shiggey:? idk

gentle marten
#

i like that

austere gulch
grim hare
gentle marten
lofty crypt
dull magnet
#

shiggey

cedar marsh
paper mountain
#

Ahhh

#

Stop

cedar marsh
paper mountain
#

Ffs

astral snow
#

what all is new in v 1.0.7 ?

opal fern
#

Tolenlogger

cedar marsh
#

What parts of discord have a color picker so I can find that component

cedar olive
#

role color changer

cedar marsh
#

Thammk

dull magnet
astral snow
astral snow
grim hare
#

there are so many plugins

#

I am going insane trying to figure out some sort of sane categories

grim hare
#

There's a few plugins that I didn't really think fit into any of these categories very well and I'm not sure what to do with them, any feedback or suggestions on this would be great

#

I've never really liked misc categories, they just become dumping grounds for anything that doesn't perfectly match one category (which is nearly everything)

#

and then we end up with the same issue that categories are trying to solve in the first place

lofty crypt
#

maybe trying to force a partitioning ( : into disjunct categories covering all plugins), rather than using tags, is not worth it, particularly in the long run, given that the dataset does not seem to naturally lend itself to it. The problem will only get more complex with every new plugin and creates an additional unnecessary hassle for creating one (for the plugin dev and/or venchord maintainers like yourself).

For example, i’d have to think very hard to figure out, what the clear differences between the last 3 categories are supposed to be. And whether a plugin has commands seems like a ui aspect that seems orthogonal to whether it’s, e.g., Utility or privacy focused

delicate totem
woven lion
#

thats not half bad of an idea

#

brb

#

it suggested Accessibility, API, Customization, Entertainment and Productivity, and Misc for anything taht doesnt fit

delicate totem
#

horror

woven lion
#

it also sorted them for me

#

lol

delicate totem
#

I was saying write every plugin and a description of what they do

woven lion
#

yeah thats whta i did

delicate totem
#

ah okay

woven lion
#

i copy/pasted the entire plugin list

delicate totem
#

that seemed quick

#

OH

woven lion
#

and it suggested those categories

#

here

#

it hit its token limit so

delicate totem
#

honestly those are pretty good categories for how those ended up sorted

woven lion
#

yeh

#

im surrpised tbh

delicate totem
#

switching some stuff around and maybe switching one of the categories seems pretty good

#

yeah same

delicate totem
#

I also think that all of the rpc plugins not being together is weird

woven lion
#

i think mixing the api generated and those categories is a good idea

delicate totem
#

yeah fs

woven lion
#

customization is a bit broad, it can definitely be split into QoL

#

and UI tweaks

#

and the other one

dull magnet
#

Note: There was a plugin name "Reverse..." at the end of the list, but its description was not provided. Therefore, it has not been included in any of the categories

woven lion
#

i love token limits

grim hare
#

tags would probably work better, yeah

#

I'll reorganize with some tags based on the old list and the other suggestions

grim hare
cedar olive
#

any way to close all open modals

#

I cant figure out if discord has a method for this

dull magnet
#

check modal api

cedar olive
#

I've checked the source code for it and couldnt figure if any does that

dull magnet
#

discords code?

#

Well see what closeModal does

#

and see if you can make it do all keys

cedar olive
#

aha

#

found it

cedar olive
dull magnet
#

how u gonna recover from crash

#

what u doin

cedar olive
#

by not setting the error inside the state

#

and closing some things

dull magnet
#

interesting

#

based on the stacktrace maybe we can infer the plugin

cedar olive
#

true

dull magnet
#

and auto disable it

dull magnet
#

it has a popAll method

#

there's also LayerManager.popAllLayers()

cedar olive
#

I couldnt find it 😭

dull magnet
#

mmm

#

mangled

cedar olive
#

yeah but I'm saying I couldnt even find where it is lol

#

I have no idea how to search for it

bitter sonnet
#

wouldn't that work?

#

i don't see the key set in manifest on the repo

dull magnet
#

no

bitter sonnet
#

rip

green vessel
#

How easy would it be to make this a vencord plugin?

oblique lark
#

impossible

green vessel
#

like fr

#

😭

oblique lark
#

were you supposed to send an attachment with that first message or

austere gulch
#

deleted for not reading rules i dare say

dull magnet
#

(tbf I did update the rules to add that after they posted it)

#

but that guy still didn't read rules cause he reposted it in two other channels after the first delete and now even dmed me

oblique lark
#

ok yeah completely impossible then

opal fern
#

wb

sonic badger
#

can you only request a review on a pr that somebody has been assigned to?

dull magnet
#

no but PR request is stupid

#

you can only request people who have push access to the repo

#

or those who are participating in thread

silk sorrel
grim hare
#

that seems like a pretty good candidate to be added as a built in plugin

delicate totem
#

holy shit that’s an amazing plugin

silk sorrel
#

just added autocomplete options

opal fern
opal fern
trail ginkgo
#

They're code is epic ur on drugs

silk sorrel
#

so true

trail ginkgo
#

Are these like already in the api

trail ginkgo
silk sorrel
#

already did

trail ginkgo
#

Oh lmao

#

My bad I wakey

dull magnet
#

if those are api features that just aren't implemented in the client then it's kinda risky to send those requests because it's super sus

#

if they're implemented client side then yeah

trail ginkgo
silk sorrel
#

this is what the request from a mobile client looks like when you click on the media tab

GET /api/v9/channels/1000955967627874424/messages/search?attachment_extension=png&attachment_extension=jpg&attachment_extension=webp&attachment_extension=mov&attachment_extension=mp4&attachment_extension=gif&offset=0&limit=25&sort_by=timestamp&sort_order=desc
``` and for gifs
```http
GET /api/v9/channels/1000955967627874424/messages/search?embed_type=gif&embed_type=gifv&offset=25&limit=25&sort_by=timestamp&sort_order=desc
oblique lark
#

why does text-indent not work on discord messages

#

i tried to make it so that the second and later lines get moved to the right a bunch by making a negative text indent and a positive left margin

#

but now the first line is just moved to the right a bunch still

#

trying it with padding and it still doesn't move the second line

#

for some reason the text indent only applies to emojis???

#

trolley why is it over there

#

with text-indent: -100px;

austere gulch
#

real

silk sorrel
oblique lark
#

oh yeah that'll do it

silk sorrel
#

change it to block or something

oblique lark
#

yeah but if i change it to block every message goes under the username

#

yeah i dont think this is going to work the way i want it to

silk sorrel
#

maybe flex will do it

#
.compact-2Nkcau .messageContent-2t3eCI {
    flex: 1 1 auto;
}
.contents-2MsGLg {
    display: flex;
}
.header-2jRmjb {
    flex: 0 0 auto
}
oblique lark
#

OMG IT WORKS

#

truly the magic of flexbox

sonic badger
#

is there an option to disable the "Not updating Vencord due to being in DevMode" block in the installer? Shouldn't it just update using the dev repo?

woven lion
#

you can't use the installer if its in devmode

#

you have to git pull and rebuild

sonic badger
#

I figured, just seems weird

woven lion
#

well the installer installs and manages a non-devmode version of vencord, which is naturally incompatible with the devmode version

#

if you're in devmode in the first place, you have the tools to update and rebuild vencord yourself, so you should do so

sonic badger
#

I just don't see why it wouldn't just follow the process for updating in devmode like the build in updater

woven lion
#

because that's really not what the installer is for; its for users, not for developers

#

it cant handle every edge case that developers create

sonic badger
#

Like spitting out the error from git pull?

woven lion
#

there are loads of different potential issues and errors that developers will make on their own custom builds

#

the installer cannot and will not handle them all, because once again its for users, not developers

sonic badger
#

But they don't matter, if there is an error pulling, or an error building. Just relay the message

woven lion
#

if you really want to use the installer again, unpatch your devmode build and use the production user build

woven lion
sonic badger
#

As I've said multiple times, just relay the output

woven lion
#

if anything using the installer is vastly more complicated than just clicking update in the client or running the two commands to do a proper update

#

also, if you're running the installer via your dev build (e.g. pnpm inject), you cant and shouldnt update it whilst its running!!! that will do some seriously bad stuff

sonic badger
#

I don't see the confusion here

woven lion
#

there is no confusion, its just a really silly idea

#

you're a developer yes?

#

update it yourself

#

the installer is not built to do it for you, because its for the users

#

not for devs

#

please

austere gulch
#

Installer exists to inject vencord. For users, it does the honours of downloading pre-compiled JS files for you.
For developers, it doesn't do this, because it can lead to unintentional behaviours that developers might not want

I'm sure you wouldn't love your changes to be accidentally erased because you hit update on the installer

#

if you don't need the git stuff, then just use normal installer method

woven lion
#

^^^^

sonic badger
#

It would just be wrapping git anyways, and not force pulling...

woven lion
#

okay

austere gulch
#

then why not just

woven lion
#

what is your use case here

austere gulch
#

git pull

woven lion
#

just

#

run it yourself

#

it is safer, you have more control, and if something goes wrong you can just fix it immediately

austere gulch
#

I don't see why you need us to add tons of unnecessary functionality to the installer for something you could write in 8 keystrokes

sonic badger
#

This whole response is quite unwarranted to quite reasonable idea

woven lion
#

but its not reasonable

austere gulch
#

we're explaining why we don't want to add it to the installer, that's all xd

woven lion
#

the entire response is because its not a reasonable idea for us to add, because there's so many things that can and will go wrong

#

hell, even megu said that it has the potential to make you lose all of your work

sonic badger
#

I didn't ask you to add it. My question was if there was an existing way to have the same functionality that was in the client updater

woven lion
#

?

#

this is if we theoretically added it

#

regardless, there is no point, and its more effort to update through the installer than to just git pull && pnpm build

austere gulch
#

it simply doesn't exist, and unless someone feels like adding it (unlikely), it won't exist

sonic badger
#

if it's just wrapping git, it's a very short amount of code to implement, and it's just there for convenience. It's just wrapping those "8 keystrokes" with a button and spitting out the error. I never claimed it was an important nor necessary addition to be made.

woven lion
#

then it wont be an addition coming any time soon i guess

austere gulch
#

if ur gonna write pnpm inject anyways, why not just run git pull i don't get it

woven lion
#

It's just wrapping those "8 keystrokes" with a button and spitting out the error.
yes, we have this, its called typing the 8 keystrokes, pressing enter, and getting the error SmartMoment

sonic badger
#

which is perfectly fine. I just think this response as a whole was unwarranted and quite rude

woven lion
#

this extended discussion was unwarranted, i agree, but i did already state that you should just do the update+build yourself at the very beginning

#

which is now what we've come full circle to

sonic badger
#

I've asked my question, and explained my thinking. So thank you for the answer, and I'll be continuing with my day now

woven lion
austere gulch
#

read if the

opal fern
#

anyone know how i can fix this? font is smaller than channel mention hashtags

#

mentioning people works normally but channel mentions dont

austere gulch
#

lmao

#

thats perfect

lofty crypt
#

i am devastated that you have to deal with this and hope you will find relief soon Prayge
thoughts and prayers

chrome elbow
cedar olive
#

make array input

#

there a text box for entering new items with a + button

#

and existing ones you can edit and they have a remove button

chrome elbow
#

im thinking about a textarea like theme tab but still dont know how to do
edit: nvm it need to be tsx not ts

chrome elbow
#

ok it works well now
but now it's white and setting description doesnt show trolley

covert nimbus
#

wait howd you use a custom component

#

oh im stupid

chrome elbow
#

hmm looks better now

lofty crypt
#

nice! looking forward to it

woven lion
#

welp guess that saves me the effort of making it lol

#

the syntax is a bit jank though, couldnt you split it up into three textboxes instead and use an array for settings?

#

thatd make it a lot more user friendly, i dont think people would understand if you just gave them a massive textarea

#

actually ill post it on git

strange igloo
#

holy shit its the real kabu cino

woven lion
#

they wont read your pr most likely, and giving them those examples does seem confusing; it took me a minute to understand what each of them do

#

thats why id recommend doing the three sets of textboxes instead

#

also, what would happen if i want to replace ? or => ?

chrome elbow
#

i think no one would want to replace a space then ? then a space to something 🤔

strange igloo
#

but someone will try it

woven lion
#

id definitely try the arrow

#

cause i liked having => and -> as replacements

#

yeah the question mark is a stretch but its more of a test to see how it handles invalid inputs

#

like,what happens if you just put => or ? =>

strange igloo
#

i believe there is something in vencord settings that can handle invalid input

woven lion
chrome elbow
woven lion
#

hm, okay

#

but then it should flag up as invalid :P

#

i did read that bit but its a bit too messy so i couldnt see how it worked on mobile

chrome elbow
#

how about this trolley

covert nimbus
#

horror

lofty crypt
#

^ thistbh lol

woven lion
#

oh gosh that is NOT what i meant :P

chrome elbow
#

idk how make a +/x button that add/delete fields like what you meant :(

woven lion
#

store the setting as an array, then for each item in the array you can create a component with the key being the index- your x button can delete the index specifically, and the + adds an empty option in the array to be filled out

#

actually you might not even need the + button tbh, imply it by having an empty option all the time and when you type in it it creates the option

#

also btw you should probably be using definePluginSettings and not passing the options prop

#

e.g.

#
const settings = definePluginSettings({
    replace: {
        type: OptionType.COMPONENT,
        description: "",
        component: (prop) => 
            <SomeComponent onChange={e => prop.setValue(e.currentTarget.value)} />
    }
});

export default definePlugin({
    // ...
    settings,
    // ...
});
trail ginkgo
#

i have a OptionType.REGEX and OptionType.ARRAY in the works

#

i was planning on using them for this plugin actually

#

but i'll just finish the regex thing and psuh

cedar olive
#

found it using displunger lol

#

omg so this is what it does

dull magnet
#

yeah

cedar olive
#

I deserve a prize

cedar olive
#

nvm

#

I do not

#

wait

#

a bit

#

I did find the correct closeAllModals method

#

lmao discord

dull magnet
#

u love

#

the esc handler looks similar

#

find(m => m.binds[0] === "esc");

#

look at these lmao

#

it should find 2 iirc

chrome elbow
dull magnet
#

one of them is similar to that

dull magnet
#

the thingies on the right look weird tho lol u should make it similar to how discords ones look

cedar olive
dull magnet
#

mm

#

there's a another one

#

find(m => m.binds?.includes("esc"));

#

maybe

cedar olive
#

same thing lol

dull magnet
#

mm

#

idk

cedar olive
#

so bad

dull magnet
#

I'm not on PC rn

cedar olive
#

ModalStack popAll isnt exported

dull magnet
#

there's another one that has esc in its binds and it has three million actions

cedar olive
#

I will not write all those dispatches

paper mountain
#

Y’all are speaking enchantment table to me rn

cedar olive
#

I'm gonna manually export it

cedar olive
paper mountain
#

I even want to be a computer scientist but this is confusing

dull magnet
#

there should be a handlee that has esc and shift+pagedown in handlers

cedar olive
#

not really relatable

dull magnet
#

@cedar olive

cedar olive
#

this is mostly discord interal stuff

#

if you don't know them you arent going to understand

chrome elbow
cedar olive
#

omg

dull magnet
#

make each handle its own state

#

pass a save() function or similar to each row that updates array of entries

#

I can help u with this tmrw if u want

cedar olive
#

discord bad code jumpscare

dull magnet
#

yeah that's what I meant lmao

#

or maybe not idk

#

but very similar to that

#

10/10 code

cedar olive
#

yes

dull magnet
#

@chrome elbow

cedar olive
#

you did powercord plugins??

#

how can I not remember that lmao

dull magnet
#

ye

#

that org has a bunch

#

idk my plugins were pretty meh

cedar olive
#

I translated powercord to portuguese kek

dull magnet
#

again I sucked at coding back then

#

I made persist favourites, petpet, unindent

#

and some more but the rest not that relevant

cedar olive
#

yeah I didnt use any of your plugins

dull magnet
#

wow u hate me confirmed

cedar olive
#

nvm

#

I did use those

dull magnet
#

lmao the first one

#

I made that before I found out ctrl shift f is a thing

cedar olive
#

dude

#

I used that plugin to make my first plugins

dull magnet
#

Hahaha so many people did

#

me included

cedar olive
#

I originally made IgnoreActivities on better discord

#

and I used your plugin to find the mod to patch and ignore them

dull magnet
#

I mean that plugin is partially part of vencord but the Vencord "port" is way better and more powerful

cedar olive
#

let me show you it

#

it's so bad.

#

not my fault though

#

one day I will find it

#

dont worry

#

got it

cedar olive
#

@dull magnet we will add functionality to find the responsible plugin later

#

crash handler seems super good to push now

dull magnet
#

I looked but stupid chromium doesn't expose filename

#

only Firefox has it

cedar olive
#

guh

dull magnet
#

fileName being the fileName that shows on the very right of the console on errors

#

it shows the correct file name due to us using source maps

#

but no way to get it programmatically, probably need debugger api and that's eee

cedar olive
#

ah

#

okay

#

this is ready then

#

lol

#

It works with the context menu crash we fixed today

dull magnet
#

Well

#

I'm not sure if it should be a required plugin

#

or at least enabled by default

#

it seems like something most people would want

cedar olive
#

hmm

#

how do make It enabled by default

dull magnet
#

and the update notification is pretty useful

cedar olive
cedar olive
#

okay I made it not required but enabled by default

lofty crypt
#

Version
1.0.8
ayy thanks for pushing the TooltipComponent fix to Web alr PepeHappy

cedar olive
#

@dull magnet can I separate NoTrack into NoSentry and NoTracking

#

in case someone wants to keep analytics but no error logging

#

then NoSentry would be required, not NoTracking

viral roost
#

why would you want to keep analytics enabled

cedar olive
#

oh my god I knew someone would say that

#

let me have my analytics on

#

I dont want my discord data missing information in case I ever want to analyze it

lofty crypt
#

ayy fellow data hoarder, i see you! xD

lofty crypt
lofty crypt
cedar olive
#

It seems weird to call it NoTrack and have no tracking disabled by default

#

the user should choose to disable the tracking

#

not be on by default

#

but on the other hand we dont want the sentry catching our errors, hence why it should be required

lofty crypt
#

DontPhoneHome

cedar olive
covert nimbus
#

seems counter-intuitive

#

OH FUCK YOU MADE ME SPILL COFFEE ON MYSELF

slow charm
#

just make it a setting

#

no need to have two seperate plugins

dull magnet
#

analytics might send sus data due to vencord

#

for example discord tracks where you navigate

#

imagine it tracking that you just navigated to "VencordSettings"

#
  • why would you want analytics on
#

I don't think it affects ur data much does it

#

the data package mostly contains stuff like who u messaged and so on which tracking isn't needed for

lofty crypt
#

isn’t suppressing tracking sus too?

dull magnet
#

no

#

any proper adblock will do it too

#

using pihole

#

etc

lofty crypt
#

ah gotcha

dull magnet
#

people been doing it for ages and nothing happened to anyone

#

install ublock then open discord in browser and look how many blocked requests to /science (fuck discord for calling their endpoint science to bypass tracker blockers) there are in the console

lofty crypt
#

fuck discord for calling their endpoint science to bypass tracker blockers
omegajoy that’s wild

dull magnet
#

yeah the endpoint used to be called /track but they renamed it to /science to bypass common anti tracking programs

#

so scummy

paper mountain
#

Why does discord even need to trakc

eternal spear
#

for some reason, invisibleChat plugin not let you send message when you have cover enabled (Even if you type more than 2 words)

#

after some investigation, i found that if i make it just block less than 1 word, i can send with cover enabled

dull magnet
#

wha

#

block?

eternal spear
#

wait

#

sorry

#

it is my mistake

#

I test 2 characters, not words

lofty crypt
#

dc doesn’t advertise much, but maybe they might want to at some point

shrewd yacht
#

Does discord sell/share our data?

dull magnet
#

you can read their privacy policy

lofty crypt
#

p sure it says they don’t

shrewd yacht
#

I can

dull magnet
#

but yes in short they reserve the right to share your data with "their partners"

lofty crypt
#

a

dull magnet
#

their partners being any business partner they might have

shrewd yacht
#

Discord is literally an NSA honeypot then

dull magnet
#

Also they have a super shady line that states they reserve the right to sell your data if they go bankrupt or as part of a business deal

lofty crypt
dull magnet
lofty crypt
paper mountain
#

Discord tracks dms

#

fuck

#

That's scary

dull magnet
#

they don't explicitly say they do but

#

"Information we collect may include but not be limited to username, email address, and any messages, images, transient VOIP data (to enable communication delivery only) or other content you send via the chat feature."

#

any messages

paper mountain
#

"may"

potent fox
#

they just can

#

its not encrypted

shrewd yacht
#

Discord is so bad bruh

potent fox
#

but discord also doesnt say something like 'secure encrypted platform'

dull magnet
paper mountain
#

Exactly

dull magnet
#

gdpr policy specifically recommends against using words like may

shrewd yacht
#

if lichess encrypt dms, discord can

paper mountain
#

Are all these no track plugins capable of combatting this dm tracking?

dull magnet
#

bad embed

dull magnet
potent fox
#

guhhhh its just discord messages are not encrytped

dull magnet
potent fox
#

which makes them able to read any time they want

shrewd yacht
dull magnet
#

if you want to chat privately with guarantee that noone is snooping on you, use an end to end encrypted messenger like signal or matrix

potent fox
#

just use different chatting app yeah

#

horror

#

guys come on this app is advertised as community group and gaming app

paper mountain
#

Make an encrypted discord messaging client trolley (It is probably technically possible but totally not needed)

dull magnet
#

it's possibly by sending text files with encrypted messages but at that point you might just use email or a different messenger

paper mountain
#

lol

#

yeah

#

Write an auto encryptor and decryptor

dull magnet
#

anyway if you care about privacy just use matrix to talk to friends

#

decentralised and end to end encrypted

paper mountain
#

Ill try that

#

but Discord is far more popular

dull magnet
#

yeah that's why I use it too

#

I think matrix is mainly good to talk to specific friends where you want more privacy

#

Also reminder that at least part of your government is likely trying to ban end to end encryption or monitor your messages to "fight child abuse"

paper mountain
#

"""""fight child abuse""""""

potent fox
#

@dull magnet telegram you love

#

but they are not encrypted too trolley

dull magnet
paper mountain
#

ewwwww

#

EU badd

#

Is there anything they can do about encrypted messages though?

dull magnet
#

they will force providers of e2e services to do scanning on device

#

but since its on your device its trivial to block or outright remove, plus you can use foss apps that have end to end encryption to circumvent it

#

if they implement this I will definitely move to matrix for anything I care about (or remove it from whatever app I'm using)

paper mountain
#

yeah

dull magnet
#

the police are watching you sexting!

paper mountain
#

Rare US privacy W or are they also doing this

dull magnet
#

they're probably already doing this

#

nah idk

paper mountain
#

¯_(ツ)_/¯

#

Government can try and do stuff, but realistically, there is a limit to what they can do

#

Ppl will usually just resort to more and more difficult to block methods

dull magnet
#

no

#

people will just accept being monitored by the government

dull magnet
#

the only people who will use private means of messaging are privacy nerds (0.1%) and the pedophiles and groomers this amazing proposal is supposed to shut down, so it will just have no effect other than the government now monitoring everyone (aka their real goal)

eternal lion
#

Nerds will probs still use matrix or smth

paper mountain
dull magnet
#

duh

paper mountain
#

Speaking of filters

#

And tracking

dull magnet
#

that site is pretty good

#

First time I'm hearing of it

#

the guy who made that site is EU parliament member

#

people like that restore my faith in maybe not all politicians being horrible

paper mountain
#

wow that's unexpected

#

You all talk about censorship and filtering in theoreticals

#

and yet

#

As we speak I have to use a proxy just to use discord trolley

dull magnet
#

why

paper mountain
#

School being dumb

dull magnet
#

lolz

paper mountain
#

Spotify is blocked trolley

eternal spear
#

lol

paper mountain
#

Im actually nearing the end of the road

#

Running out of proxies

shrewd yacht
paper mountain
#

that ship sailed like a year ago

#

I wish it was that easy

lofty crypt
#

altho
i do strongly desire protecting potential victims
it’s a doozy 😐

lofty crypt
#

well it will prbly catch some less cunning criminals (no innuendo intended)

#

but yeah v questionable whether that is worth the risks

shrewd yacht
paper mountain
cedar olive
lofty crypt
lofty crypt
#

welp, i’m really unsure, but i’m tending against the wiretapping rn yeah

dull magnet
#

oh interesting

#

there's actually an important discussion about this chat control tomorrow

#

with many critics of it attending

#

Die Zentral- und Ansprechstelle Cybercrime und der Kinderschutzbund kritisieren eine in der EU-Verordnung zur Chatkontrolle geplante anlasslose Überwachung von Inhalten. Beide Institutionen fordern stattdessen vor allem mehr Personal und andere Maßnahmen zum Schutz von Kindern.

#

German jumpscare

lofty crypt
#

Kinderschutzbund kritisieren
feelsInteresting

#

ig that p much confirms your point

dull magnet
#

Der Vorstand des Kinderschutzbunds Joachim Türk heißt zwar die EU-Verordnung insgesamt ein „als deutliches Signal“ gut, sie gehe aber „an entscheidenden Punkten zu weit“. In der Stellungnahme positioniert sich der Verband gegen das Durchleuchten von Kommunikationsinhalten. „Vor allem das anlasslose Scannen privater Kommunikation in Messenger-Diensten (wie z. B. WhatsApp oder Signal) oder E-Mails ist weder verhältnismäßig noch zielführend.“ Es sei ein tiefer Eingriff in das Grundrecht der Kommunikationsfreiheit. Der Verband befürchtet dadurch Auswirkungen auf das Verhalten von Kindern und Jugendlichen.

#

if you're not German and curious about it you can probably run the article through Google translate and get a pretty understandable version

dull magnet
#

I'm glad some of the relevant German representatives are against it though

#

that gives me hope

#

mucho text holy shit

lofty crypt
#

hart, Mann

plucky sphinx
#

am i allowed to modify existing plugins?

eternal lion
plucky sphinx
#

yeah

dull magnet
eternal lion
#

oh ok

dull magnet
#

that's one of the core principles of free software

eternal lion
#

yeah

plucky sphinx
#

I modified the pronoun db plugin to Get pronouns from bio if it cannot find them on pronoundb

lofty crypt
#

damn, that’s smart and useful! Will you pr it?

dull magnet
#

that will be quite api spammy

#

since you need to fetch people's profiles to get their bio

#

and discord doesn't want u to scrape profiles so it likely has pretty strict rate limits

plucky sphinx
#

Ah yeah

lofty crypt
#

valid user, if you’re feeling quite motivated, ig you could create a local cache for it which could remember for the user (across sessions) when they open a profile

oblique lark
#

does anyone know what the selector for system messages is?

oblique lark
#
[class^="systemMessage-"] {
  border: 1px red solid;
}

for some reason this doesn't work???

#

i also tried selecting it with the exact class name instead of ^=

#

plus isSystemMessage which is different maybe

dull magnet
#

what are u trying to do

oblique lark
#

first i wanted messages in compact mode to line up vertically

#

but now it's messing up the system messages for some reason

dull magnet
#

so this is a big xy problem moment

#

whenever you ask for something like this and you're actually asking for help with ur attempted solution rather then the actual problem, also say what the actual problem is

#

"what's the selector for System messages? I need it to fix system messages being broken in my better compact mode snippet"

#

anyway I have no idea haha

cedar olive
plucky sphinx
#

Woohoo my code doesn't work

austere gulch
#

update with the installer

plucky sphinx
#

Ithink its because my fork of Vencord is far behind?

austere gulch
#

yes

plucky sphinx
#

Hmm all User.bio says undefined

#

I think instead of getting it from bio i will try getting it from guild roles

dull magnet
#

to get the bio u need to fetch profile

#

not just user

#

fetchProfile is iirc mangled aka u need to find it by code

plucky sphinx
#

so something like Message.author.bio doesn't work?

opal fern
#

no

lofty crypt
plucky sphinx
#

i can use useAwaiter in place of await in a synchronous function?

austere gulch
#

in a component yeah

plucky sphinx
#

Because when i make my function Async it returns a promise instead of what i want

dull magnet
#

it's only for react components

#

you can't await in a synchronous function

#

if you need that, you need to find a workaround instead

plucky sphinx
#

Yeah it is a react component

#

trying to use DataStore stuff in the chat component

dull magnet
trail ginkgo
#

you should use the this

#

if i did it right

#

i might have forgotten to add this to the components actually lmao

#

oh yea i definitely did because i dont remember changing the component renderer

dull magnet
#

actually

trail ginkgo
#

u can probably use settings itself

dull magnet
#

i think you might just be able to refer to the settings variable

trail ginkgo
#

as long as it doesnt change the typings of the return type

dull magnet
#

it would be nice if component got the settings as props

trail ginkgo
#

yea i should do

dull magnet
#

i think it might actually

#

idk

trail ginkgo
#

idk

dull magnet
#

@chrome elbow can you try replacing Settings.plugins.TextReplace with settings.store

#

i wish github had like a way to mark prs as "looked at" that would hide them for me until there's new activity

#

maybe i will open issue in refined-github

trail ginkgo
#

real

dull magnet
#

i wish i could contact mozilla and ask for help with this

#

but then i would have to point out that the extension blatantly violates their extension rules

#

thats like contacting Discord for Vencord support

woven lion
#

what're the extension rules

dull magnet
#

Removing csp is actually not allowed

#

they for some reason still approved

woven lion
#

o

dull magnet
#

but the csp removal doesnt work for some reason

woven lion
#

mozilla try to audit code challenge (impossible)

dull magnet
#

that box shadow is way too much

woven lion
#

christ

#

also i am genuinely so tempted to give vaius a database

#

so i can add the ability to add support autoresponses via commands

austere gulch
#

needs more box shadow

dull magnet
#

we do both of those

#

they still approved LOL

woven lion
#

cuz its all well and good me hardcoding the regexes but Wouldnt It Be Fun if
vautoresponse add "Cannot read property 'TOP' of undefined" discord exploded, pls wait

woven lion
#

thanks mozilla

dull magnet
#

google doesn't have these rules but they actually ask you whether you do these and asks for justification

woven lion
#

yea

#

i love google's extension publishing

#

its so nice

dull magnet
#

i think they manually reviewed so they know

#

maybe they saw and realised its safe-ish or necessary so they allowed anyway

#

according to mozilla themselves, user's choice is more important than securcity

#

aka if the user wants to load something then it should bypass csp

woven lion
dull magnet
#

they said that somewhere when there was an argument whether extensions should bypass csp with their own script tags

#

moz-extension:// uris bypass csp

woven lion
dull magnet
#

THEY KNOW WHAT YOU ARE

woven lion
#

woa

#

thats actually a really cool feature

dull magnet
#

discord be like

woven lion
#

ikr

dull magnet
woven lion
#

its scary cause it happened after i refreshed my client 3 times in a row

dull magnet
#

why does discord do this

woven lion
#

tracking

dull magnet
#

wanna know something even scarier lewi

woven lion
#

hmm?

dull magnet
#

i got a dm from the discord system account recently that began

Hello

Your server VenchOrd Server has been removed from Discovery for violating our Discovery Guidelines

#

i thought they got us for client modding

#

but then i read further and it was just "Your server must have a title and description that accurately tells users what to expect from your server"

#

LOL

woven lion
#

thats so dumb LOL

dull magnet
#

because i put some bullshit as description

woven lion
#

"Hm Yes. Modding Server. No, bad Description!"

#

i wonder what discord would think if i set my email address to lewi@b.4.0.4.0.6.a.0.a.2.ip6.arpa

#

do you think they'd get upset with me

dull magnet
#

so fucking funny

woven lion
#

thats so silly

dull magnet
#

this is really funny because it means someone must have reported us (?) and some Trust and Safety person manually reviewed us and was like oh yeah this is totally a fine server im sure the fellas there are nice

woven lion
#

reports not really necessary

#

they just sweep through discovery every now and then

woven lion
#

i wonder if you put the actual description (as in, "Vencord is a client mod") they would've let it pass

dull magnet
#

this was the description

#

i just put bullshit into the "what to do on this server"

#

like u know how it asks u to say 4 points

woven lion
#

wait lmao

#

thats funny

dull magnet
#

for the server site

woven lion
#

they genuinely just thought it was okay

dull magnet
#

i put shit like "we do cool stuff here"

dull magnet
#

they read that description and were like yeah i see nothing wrong here

woven lion
#

Yes. Mod. Okay.

dull magnet
#

actually

#

maybe they did remove us from discovery because client mod

#

but either only have like a multiple choice for reason or didn't want to essentially say client mods bad

#

so they just gave us that reason

woven lion
#

ahahaha

#

ven

#

i just discovered something hilarious

#

this is fantastic

dull magnet
#

works for that too

woven lion
#

yeah

#

i love that lmao

opal fern
#

LMFAOOOOOOOOOOOOOOOOO

shrewd yacht
dull magnet
#

no

shrewd yacht
#

Why?

dull magnet
#

discord doesn't care + a backup server would do nothing + bd made a second server because their first had too many members and noone could join, not as a backup

shrewd yacht
#

bd made a second server because their first had too many members and noone could join, not as a backup
Yeah but it can work as a backup
discord doesn't care + a backup server would do nothing
ok

cedar olive
#

plus this is ven community along with vencord official server