Get User

BlockUsers

Retrieve a Discord user's information by their ID.

Provide @me as the User ID to retrieve the bot's information.

Inputs

User IDRequired

ID of the user to retrieve (@me for the bot).

Outputs

User ID

ID of the user.

Mention

User mention string.

Username

Username of the user.

Discriminator

User discriminator.

Avatar URL

Avatar URL of the user.

Banner URL

Banner URL of the user.

Accent Color

Accent color of the user.

Example: #000000

Locale

Locale of the user.

Is Bot

Whether the user is a bot.

Is System

Whether the user is a system user.

Is Verified

Whether the user is verified.

Global Name

Global display name of the user.

Build a bot using blocks like Get User

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: get_discord_user

Inputs

FieldInventScript nameValue
User IDuser_id

Outputs

FieldInventScript nameValue
User IDuser_id
Mentionmention
Usernameusername
Discriminatordiscriminator
Avatar URLavatar_url
Banner URLbanner_url
Accent Coloraccent_colore.g. "#000000"
Localelocale
Is Botis_bot
Is Systemis_system
Is Verifiedis_verified
Global Nameglobal_name

Example InventScript

user := get_discord_user(Args{user_id: "..."})
send_text_message(Args{channel_id: trigger.channel_id, message_content: "User ID: " + user.user_id})

More users blocks