discord.js-plus
TypeScript icon, indicating that this package has built-in type declarations

12.2.12 • Public • Published

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

ClassOrEvent PropOrMethod
ClientEvents relationshipAdd(Relationship), relationshipRemove(Relationship), relationshipUpdate(Relationship, Relationship)
Relationship extends Base user: User, id: UserId, type: number
RelationshipsManager extends BaseManager fetchAll(): Promise<Collection<Snowflake, Relationship>>, presences: PresenceManager
Client relationships: RelationshipsManager
ClientUser relationships: Client#relationships, friends: Collection<Snowflake, User>, blockList: Collection<Snowflake, User>
User blocked: 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)

})

Package Sidebar

Install

npm i discord.js-plus

Weekly Downloads

21

Version

12.2.12

License

Apache-2.0

Unpacked Size

768 kB

Total Files

193

Last publish

Collaborators

  • darkyeg