User

dc_user

Represents a regular user, or a bot.

Queryable properties #

Property Type Description
name String The name of the user.
mention_tag String The mention tag to mention a user in a message.
id String The ID of the user.
avatar String The image URL used in the user's avatar picture.
is_bot Boolean Whether the user is a bot.
is_self Boolean Whether the user is the currently logged in bot account itself.
Useful to prevent bots from replying to itself.
private_channel Channel The private messages (DMs) channel with the user.1
Throws an exception on failure.

  1. Querying this property can freeze the game. Query it in a task to avoid freezing your game.
    It does not freeze the game if the channel has already been created.