userinfo bot

does anyone here know how to make a command for userinfo for bots on discord?
33 Replies
d.js toolkit
d.js toolkit2mo 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/luna2mo ago
fetch the user
d.js docs
d.js docs2mo ago
:method: UserManager#fetch() @14.16.3 Obtains a user from Discord, or the user cache if it's already available.
treble/luna
treble/luna2mo ago
then you can access its properties
d.js docs
d.js docs2mo ago
:class: User @14.16.3 Represents a user on Discord.
caminhosombrio
caminhosombrioOP2mo ago
it would be more in the part of showing the insignia in the userinfo message
treble/luna
treble/luna2mo ago
the what
Amgelo
Amgelo2mo ago
you mean the user's badges?
caminhosombrio
caminhosombrioOP2mo ago
i wanted to know how to show the insinuities, like the boosting server, initial supporter etc
No description
treble/luna
treble/luna2mo ago
thats not possible
caminhosombrio
caminhosombrioOP2mo ago
yeah
treble/luna
treble/luna2mo ago
you can only access a few badges not nitro or boost badges
caminhosombrio
caminhosombrioOP2mo ago
No description
d.js docs
d.js docs2mo ago
:property: User#flags @14.16.3 The flags for this user
treble/luna
treble/luna2mo ago
cool, then ask the developer of that bot it is not possible
caminhosombrio
caminhosombrioOP2mo ago
-'
treble/luna
treble/luna2mo ago
unless with oauth2 but i highly doubt youd want that
Amgelo
Amgelo2mo ago
maybe they just check the member's premiumSince value and then infer the badge from that
caminhosombrio
caminhosombrioOP2mo ago
yeah
Amgelo
Amgelo2mo 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/luna2mo ago
or just selfbots no, they use selfbots to access profile info
caminhosombrio
caminhosombrioOP2mo ago
yes oohh ok ok sorry I'm Brazilian, I don't know much English
Amgelo
Amgelo2mo ago
for the boosting badge, it's probably this
d.js docs
d.js docs2mo ago
:property: GuildMember#premiumSince @14.16.3 The last time this member started boosting the guild
caminhosombrio
caminhosombrioOP2mo 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
Amgelo2mo 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
caminhosombrioOP2mo 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
caminhosombrioOP2mo 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
caminhosombrioOP2mo ago
10:48 see
caminhosombrio
caminhosombrioOP2mo ago
No description
caminhosombrio
caminhosombrioOP2mo ago
No description
treble/luna
treble/luna2mo ago
those arent nitro badges those are exposed to the api yes
caminhosombrio
caminhosombrioOP2mo ago
I'm going to read the documentaries then Thanks for the help
Want results from more Discord servers?
Add your server