userinfo bot

does anyone here know how to make a command for userinfo for bots on discord?
33 Replies
d.js toolkit
d.js toolkit6mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
treble/luna
treble/luna6mo ago
fetch the user
d.js docs
d.js docs6mo ago
:method: UserManager#fetch() @14.16.3 Obtains a user from Discord, or the user cache if it's already available.
treble/luna
treble/luna6mo ago
then you can access its properties
d.js docs
d.js docs6mo ago
:class: User @14.16.3 Represents a user on Discord.
caminhosombrio
caminhosombrioOP6mo ago
it would be more in the part of showing the insignia in the userinfo message
treble/luna
treble/luna6mo ago
the what
Amgelo
Amgelo6mo ago
you mean the user's badges?
caminhosombrio
caminhosombrioOP6mo ago
i wanted to know how to show the insinuities, like the boosting server, initial supporter etc
No description
treble/luna
treble/luna6mo ago
thats not possible
caminhosombrio
caminhosombrioOP6mo ago
yeah
treble/luna
treble/luna6mo ago
you can only access a few badges not nitro or boost badges
caminhosombrio
caminhosombrioOP6mo ago
No description
d.js docs
d.js docs6mo ago
:property: User#flags @14.16.3 The flags for this user
treble/luna
treble/luna6mo ago
cool, then ask the developer of that bot it is not possible
caminhosombrio
caminhosombrioOP6mo ago
-'
treble/luna
treble/luna6mo ago
unless with oauth2 but i highly doubt youd want that
Amgelo
Amgelo6mo ago
maybe they just check the member's premiumSince value and then infer the badge from that
caminhosombrio
caminhosombrioOP6mo ago
yeah
Amgelo
Amgelo6mo ago
not sure about the nitro badge though, that's not really possible ^^ unfortunately they don't seem to have either maybe they're inferring that if you're boosting then you probably have nitro? yeah :kek:
treble/luna
treble/luna6mo ago
or just selfbots no, they use selfbots to access profile info
caminhosombrio
caminhosombrioOP6mo ago
yes oohh ok ok sorry I'm Brazilian, I don't know much English
Amgelo
Amgelo6mo ago
for the boosting badge, it's probably this
d.js docs
d.js docs6mo ago
:property: GuildMember#premiumSince @14.16.3 The last time this member started boosting the guild
caminhosombrio
caminhosombrioOP6mo ago
I wanted badgesDisplay to show the user's badges ; { name: ':insignias: Insígnias', value: badgesDisplay, inline: true }, but I don't know how to do that
Amgelo
Amgelo6mo ago
that's what we're answering this is how you get some of them but nitro and boosting badges aren't exposed by the api, you must infer they exist from some other data
caminhosombrio
caminhosombrioOP6mo ago
hmm So in case the Nitro and Boost badges don't appear through the API, so do I have to find another way to do this? to show these badges when I type the command in the case you didn't understand I think
caminhosombrio
caminhosombrioOP6mo ago
Razlar
YouTube
How to make a User Info Command | Discord.js V14
Hey there, in this video you will learn how to create a /user-info command getting information such as if they are a bot, have they boosted a server ect. Get Access to pastebins? » http://tiny.cc/eib7vz Access to Emojis » https://www.mediafire.com/folder/id18jj2pfju86/User-Info-Badges Join my Discord Server » https://discord.gg/aTAg953wJH...
caminhosombrio
caminhosombrioOP6mo ago
10:48 see
caminhosombrio
caminhosombrioOP6mo ago
No description
caminhosombrio
caminhosombrioOP6mo ago
No description
treble/luna
treble/luna6mo ago
those arent nitro badges those are exposed to the api yes
caminhosombrio
caminhosombrioOP6mo ago
I'm going to read the documentaries then Thanks for the help

Did you find this page helpful?