aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
701 stars 145 forks source link

Add support for reading User.pronouns #1172

Closed duccdev closed 3 days ago

duccdev commented 1 month ago

Which package is the feature request for?

The core library

Feature

ClientUser (the selfbot) has a readable pronouns property while a normal User doesn't I'm trying to make my own little AI selfbot kinda like Clyde using this and I wanted to give the model some info about the user and unfortunately I can't read pronouns

Ideal solution or implementation

Add a pronouns property to User that can be accessed using User.pronouns For example: msg.author.pronouns

Alternative solutions or implementations

No response

Other context

No response

aiko-chan-ai commented 3 days ago
const data = await msg.author.getProfile(msg.guildId ? msg.guildId : undefined)
// https://discord-userdoccers.vercel.app/resources/user#response-body
console.log((data.guild_member_profile || data.user_profile)?.pronouns)