Skip to content

Users

The User object is everywhere: message authors, guild members, DM recipients. Your bot is also a User with bot: true.

{
"id": "1496956937664585746",
"username": "my_bot",
"global_name": null,
"avatar": null,
"avatar_color": null,
"banner": null,
"banner_color": null,
"bio": null,
"nameplate": null,
"bot": true,
"flags": 0,
"premium_type": 0
}
FieldTypeDescription
idsnowflakeUnique ID
usernamestringHandle ([A-Za-z0-9_]{2,32} for bots)
global_namestring | nullDisplay name (may contain spaces and Unicode)
avatarstring | nullAvatar hash. URL: https://floodilka.com/avatars/<user_id>/<avatar>.png
avatar_colorstring | nullHex fallback colour if there’s no avatar
bannerstring | nullProfile banner hash
banner_colorstring | nullHex fallback colour for the banner
biostring | nullProfile bio, up to 190 chars
nameplateobject | nullPremium name decoration
botbooleantrue for bot accounts
flagsintegerPublic flags bitfield (STAFF, EARLY_SUPPORTER, VERIFIED_BOT, etc.)
premium_typeintegerPremium tier: 0 none, 1 Classic, 2 Full, 3 Guild-Premium

Returns the bot itself.

Окно терминала
curl https://floodilka.com/api/v1/users/@me \
-H "Authorization: Bot YOUR_BOT_TOKEN"

Useful for verifying token validity at bot startup.

Returns any user’s public profile by ID. Only public fields (the ones in the table above).

Окно терминала
curl https://floodilka.com/api/v1/users/974839103102976000 \
-H "Authorization: Bot YOUR_BOT_TOKEN"

Returns the guilds the bot is in. Pagination: before, after, limit (up to 200).

Окно терминала
curl "https://floodilka.com/api/v1/users/@me/guilds?limit=100" \
-H "Authorization: Bot YOUR_BOT_TOKEN"

Updates the bot’s public profile — name, avatar, banner, bio. Images are passed as data URLs:

Окно терминала
curl -X PATCH https://floodilka.com/api/v1/users/@me \
-H "Authorization: Bot YOUR_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"username": "my_cool_bot",
"avatar": "data:image/png;base64,iVBORw0KGgo..."
}'

Clients in your guilds see the update within seconds.