Skip to content

Commit

Permalink
Merge branch 'dev' into discord-types
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-0324 authored Jul 26, 2024
2 parents 41cd19a + 5e9a9fe commit f27bc4e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vencord",
"private": "true",
"version": "1.9.5",
"version": "1.9.6",
"description": "The cutest Discord client mod",
"homepage": "https://github.com/Vendicated/Vencord#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/clientTheme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function onPickColor(color: number) {
updateColorVars(hexColor);
}

const saveClientTheme = findByCodeLazy('type:"UNSYNCED_USER_SETTINGS_UPDATE",settings:{useSystemTheme:"system"===');
const saveClientTheme = findByCodeLazy('type:"UNSYNCED_USER_SETTINGS_UPDATE', '"system"===');

function setTheme(theme: string) {
saveClientTheme({ theme });
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/imageZoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default definePlugin({
find: ".handleImageLoad)",
replacement: [
{
match: /placeholderVersion:\i,/,
match: /placeholderVersion:\i,(?=.{0,50}children:)/,
replace: "...$self.makeProps(this),$&"
},

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spotifyControls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default definePlugin({
},
patches: [
{
find: '"AccountConnected"',
find: "this.isCopiedStreakGodlike",
replacement: {
// react.jsx)(AccountPanel, { ..., showTaglessAccountPanel: blah })
match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,hidePrivateData:)/,
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/viewIcons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export default definePlugin({
replacement: {
match: /avatarSrc:(\i),eventHandlers:(\i).+?"div",{...\2,/,
replace: "$&style:{cursor:\"pointer\"},onClick:()=>{$self.openImage($1)},"
}
},
all: true
},
// Old Profiles Modal pfp
{
Expand Down
6 changes: 5 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,11 @@ export const Devs = /* #__PURE__*/ Object.freeze({
Antti: {
name: "Antti",
id: 312974985876471810n
}
},
Joona: {
name: "Joona",
id: 297410829589020673n
},
} satisfies Record<string, Dev>);

// iife so #__PURE__ works correctly
Expand Down

0 comments on commit f27bc4e

Please sign in to comment.