Functionalities
Other
$getUserBadges
Returns the badges of the command author or a given userID in text format.

FUNCTION USAGE

  • $getUserBadges
  • $getUserBadges[]
  • $getUserBadges[guildID]

Outputs:

  • DISCORD_EMPLOYEE
  • DISCORD_PARTNER
  • HYPESQUAD_EVENTS
  • BUGHUNTER_LEVEL_1
  • BUGHUNTER_LEVEL_2
  • HOUSE_BRAVERY
  • HOUSE_BRILLIANCE
  • HOUSE_BALANCE
  • EARLY_SUPPORTER
  • TEAM_USER
  • SYSTEM
  • VERIFIED_BOT
  • VERIFIED_DEVELOPER

Properties:

[] - Leave brackets blank to return the badges of the command author in text format. userID - Returns the badges of the supplied user ID in text format.
  • Bot must share a server with the user to read their data!

Example 1: Returns the badges of the command author.

1
bot.Command({
2
name: "badges",
3
code: `
4
$getUserBadges
5
`
6
})
Copied!

Example 2 - By inputting the userID directly, the bot will always put out Speshul's badges.

1
bot.Command({
2
name: "badges",
3
code: `
4
Speshul's badges are \`$getUserBadges[600824086943367168]\`
5
`
6
})
Copied!

Example 3 - By typing a username, giving a userID or mentioning a user in the server, the bot will display the badges of that user if they have any.

1
bot.Command({
2
name: "badges",
3
code: `
4
$username[$findUser[$message[]]] badges are \`$getUserBadges[$findUser[$message[]]]\`
5
`
6
})
Copied!
Last modified 4mo ago
Copy link