DiscordUser
A value shape that methods take or return.
Getting one
discordService:getCurrentUser()Fields
| Field | Type | Description |
|---|---|---|
userId | string | The user's id. |
username | string | The user's name. |
discriminator | string | The discriminator (0 for a unique name). |
avatar | string | The avatar's hash. |
Returned by
| Method | Returns | Description |
|---|---|---|
DiscordService.getCurrentUser | DiscordUser? | The user Discord's last READY named, or nil (not connected, or off). |