๐Ÿ‘ฅGuild Users

This endpoint requires an API key. If you don't have one, you can get one by using the bot's slash command /apikey generate

The API key owner must have the Administrator permission in the selected guild to be able to get its data

Get guild's user leveling data

GET https://api.stefdp.is-a.dev/gattinhosBot/guilds/{guild_id}/users/{user_id}

Path Parameters

Name
Type
Description

guild_id*

String

The ID of the guild

user_id

String

The ID of the user

Headers

Name
Type
Description

Authorization*

String

Bearer <API_KEY>

Returns an array with the objects of each user who sent atleast one message after the leveling system was enabled

[
  {
    "rankCard": {
      "backgroundImageURL": "/home/container/data/default_background.jpg",
      "progressBarColor": "#ffaabb"
    },
    "userId": "694986201739952229",
    "guildId": "940249530962706492",
    "username": "stef_dp",
    "level": 1,
    "xp": 0,
    "lastXpIncrease": "2023-09-24T11:00:58.370Z"
  }
]

Examples

curl 'https://api.stefdp.is-a.dev/gattinhosBot/guilds/940249530962706492/users'
    -H 'Authorization: Bearer <API_KEY>'

Last updated