#vencor badges

1 messages ยท Page 1 of 1 (latest)

tacit mist
#

add all the vencor badges too trolley

broken flame
#

isn't detectable if it goes through the api? maybe discord can ban you (probably not but idk)

wraith kestrel
#

discord sends u the badge data through the api and we just edit it locally

broken flame
#

maybe I don't know how to read, but idk thats what I understood

snow relic
#

Is it possible to make this persistent? (vencord desktop) badges dissappeer when discord loads again :(

wraith kestrel
#

what?

#

oh are u talking about the %20?

#

that's discord's parser having brain damage

#

yes

#

cant fix that

#

no

#

%20 = " url encoded

#

discord's parser is stupid and does that

#

there i fixed it

#

try it yourself

#

send https://google.com/?a=b with a " at the end

#

lol that actually works

#

idk how to exactly trigger it but yeah

#

"https://google.com/?a ",{

#

post this without the space

woven holly
#

@wraith kestrel Funny little interaction moment (broken photo = when clicking on profile on the members list, not broken = profile)

wraith kestrel
#

yes

#

it's broken due to reviewdb

vernal perch
#
function addBadge(id, description, icon, link) {
  const store = Vencord.Webpack.findStore("UserProfileStore");
  const original = store.getUserProfile;
  store.getUserProfile = function (userId) {
    const userProfile = original.apply(this, arguments);
    if (userProfile && userId === Vencord.Webpack.Common.UserStore.getCurrentUser()?.id) {
      const badgeIndex = userProfile.badges.findIndex(badge => badge.id === id);
      if (badgeIndex === -1) {
        userProfile.badges.push({id, description, icon, link});
      }
    }
    return userProfile;
  };
}
addBadge("bug_hunter_level_2","Discord Bug Hunter", "848f79194d4be5ff5f81505cbd0ce1e6","https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs")

a ridiculous alternative mmlol

wraith kestrel
#

๐Ÿซ 

vernal perch
wraith kestrel
#
Vencord.Api.Badges.addBadge({
    id: "bug_hunter_level_2",
    description: "Discord Bug Hunter",
    icon: "848f79194d4be5ff5f81505cbd0ce1e6",
    link: "https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs",
    shouldShow: ({ user }) => user.id === Vencord.Webpack.Common.UserStore.getCurrentUser().id
})
#

this can also add arbitrary images, onClick listeners, etc

vernal perch
#

thx :>

wraith kestrel
junior niche
#

how this work

#

where can i but the code

junior niche
#

okay i find it

ocean elk
#

.

golden lily
#

this is client side only right?

wraith kestrel
#

ofc

golden lily
#

oki...

radiant turret
#

How can I get this to work? the whole badges plugin thing

#

@wraith kestrel

broken flame
radiant turret
radiant turret
#

Also how long will the badges last? will them go away if I restart my discord or there's an specific code to get rid of it or

broken flame
#

but I don't know how to do that honestly

broken flame
#

np i guess

radiant turret
#

Again thanks for your assistance.

#

One more thing though, how to make my own badge with a own icon? @wraith kestrel

wraith kestrel
#

can u stop pinging me

vernal perch
#

Where is dev tools?

amber topaz
#

how do I make permanent?

small compass
#

Is there a way to add the Pomelo badge to this script?

broken flame
#

you already have it

small compass
#

Ik, this script removes all of my current badges though. Iโ€™d like to have the badge after running the script as well.

wraith kestrel
#

changed it from r.badges = [] to r.badges.push(...[])

small compass
fresh goblet
#

l

vernal perch
#

for me it doesnt work and just screams at me

radiant turret
vernal perch
#

r.badges.push(...[])

strange cloak
#

uhh

fierce siren
#

ngl this is cool

#

this this only visible to me or does everyone else also see this?

covert viper
vernal perch
#

@radiant turret sorry for mention

#

but ughhh

#

how u got papa guild tag

radiant turret
torn ocean
wraith kestrel
silent lodgeBOT
quartz rampart
#

Update for this with new badges? Also the boost and nitro badges maxed out, also the orbs badges.

wraith kestrel
#

just add them urself

#

find someone who has them and copy their json from the network tab and add them to the array