Last active
July 24, 2025 22:24
-
-
Save meowabyte/9d130099d6e3cbebc543411826517058 to your computer and use it in GitHub Desktop.
Vencord snippet that adds a super power of adding anyone to friends! (VISUAL ONLY)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const { | |
FluxDispatcher, | |
UserStore | |
} = Vencord.Webpack.Common | |
const RelationshipActions = Vencord.Webpack.findByProps("addRelationship", "removeRelationship") | |
RelationshipActions.addRelationship = ({ userId, type = 1 }) => { | |
console.log(`+ ${userId} (${type})`) | |
FluxDispatcher.dispatch({ | |
type: "RELATIONSHIP_ADD", | |
relationship: { | |
id: userId, | |
type: type, | |
user: UserStore.getUser(userId), | |
nickname: null | |
} | |
}) | |
} | |
RelationshipActions.removeRelationship = (userId) => { | |
console.log(`- ${userId}`) | |
FluxDispatcher.dispatch({ | |
type: "RELATIONSHIP_REMOVE", | |
relationship: { | |
id: userId, | |
user: UserStore.getUser(userId) | |
} | |
}) | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment