User
dc_user
Represents a regular user, or a bot.
Queryable properties #
Property | Type | Description |
---|---|---|
name |
String | The name of the user. To get the nickname, use dc_get_display_name . |
mention_tag |
String | The mention tag to mention a user in a message. |
discriminated_name |
String | The name of the user with its discriminator (e.g. replaceitem#9118 ). |
id |
String | The ID of the user. |
avatar |
String | The image URL used in the user's avatar picture. |
is_bot |
Boolean | Whether if the user is a bot. |
is_self |
Boolean | Whether if 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. |
-
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. ↩