DiscordUser

A value shape that methods take or return.

Methods
None
Fields
4

Getting one

discordService:getCurrentUser()

Fields

FieldTypeDescription
userIdstringThe user's id.
usernamestringThe user's name.
discriminatorstringThe discriminator (0 for a unique name).
avatarstringThe avatar's hash.

Returned by

MethodReturnsDescription
DiscordService.getCurrentUserDiscordUser?The user Discord's last READY named, or nil (not connected, or off).