Socket
Socket
Sign inDemoInstall

discord.js-plus

Package Overview
Dependencies
97
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord.js-plus

Discord.js+ Fork from discord.js, allows you to use Selfbot with more features


Version published
Weekly downloads
30
decreased by-31.82%
Maintainers
1
Install size
2.17 MB
Created
Weekly downloads
 

Readme

Source

NPM version NPM downloads

npm installnfo

Discod.js+ Fork from discord.js, allows you to use Selfbot with more features.

If you will be using the library to use selfbot so I am not responsible if your account is blocked because it is against Discord ToS.

Changes

ClassOrEventPropOrMethod
ClientEventsrelationshipAdd(Relationship), relationshipRemove(Relationship), relationshipUpdate(Relationship, Relationship)
Relationship extends Baseuser: User, id: UserId, type: number
RelationshipsManager extends BaseManagerfetchAll(): Promise<Collection<Snowflake, Relationship>>, presences: PresenceManager
Clientrelationships: RelationshipsManager
ClientUserrelationships: Client#relationships, friends: Collection<Snowflake, User>, blockList: Collection<Snowflake, User>
Userblocked: boolean, friend: boolean, block: Promise<User>, unblock: Promise<User>, addFriend: Promise<User>, removeFriend: Promise<User>

Examples

const  {  Client  }  =  require('discord.js-plus')
const  client  =  new  Client();

client.on('ready',  ()  =>  {

	const  relationshipsSize  =  client.relationships.cache.size;
	const  blockedSize  =  client.user.blockList.size;
	const  friendsSize  =  client.user.friends.size;
	console.log(`You have ${relationshipsSize} relationships.`)
	console.log(`${blockedSize} blocked.`)
	console.log(`${friendsSize} friends.`)


})

  


const { Client } = require('discord.js-plus')
const client = new Client();

client.on('ready', async() => {

	client.users.cache.get('ID').addFriend().then( () => {
		console.log('A friend request has been sent')
	}).catch(console.error)

})

Keywords

FAQs

Last updated on 17 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc