discord.js-plus
v12.2.12
Published
Discord.js+ Fork from discord.js, allows you to use Selfbot with more features
Maintainers
Readme
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)
})
