12.2.12 • Published 3 years ago

discord.js-plus v12.2.12

Weekly downloads
13
License
Apache-2.0
Repository
github
Last release
3 years ago

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)

})