Skip to content

Instantly share code, notes, and snippets.

@meowabyte
Last active July 24, 2025 22:24
Show Gist options
  • Save meowabyte/9d130099d6e3cbebc543411826517058 to your computer and use it in GitHub Desktop.
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)
(() => {
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