Skip to content

getName

Returns the authenticated username.

Syntax

lua
Ham.getName()

Returns

  • string - The username of the authenticated user

Example

lua
local username = Ham.getName()
print("Welcome, " .. username)

Released under the ISC License.