SA World SDK Documentation
  • 🛠 ENVIRONMENT SETUP
    • Overview
    • Getting Started
    • Sign Up for SAW SDK
    • Integration Steps
      • Step 1 - Install packages
      • Step 2 - Request credentials
      • Step 3 - Environments
      • Summary
    • SAW Sample Package
  • 🖥 SDK Integration Guides
    • Getting Started
    • Initialization
    • Authentication
    • Type Definition
    • User Data
      • getUser()
      • Account Data
        • getAccount()
        • getSub()
        • getEmail()
        • getName()
        • getUsername()
        • getGivenName()
        • getFamilyName()
      • Active Citizen Data
        • getCitizen()
        • getCitizenId()
        • getCitizenName()
        • getCitizenCode()
        • getCitizenWallet()
        • getCitizenLevel()
        • getCitizenAvatar()
      • Balance Data
        • getAP()
      • Saved Game Data
        • setGameData(...args)
        • getGameData()
      • Quest Data
        • getProcess()
        • claim(...args)
      • Friend Data
        • getFriendList()
        • sendFriendInvitation(...args)
        • responseFriendInvitation(...args)
        • getFriendInvitationList()
        • inviteGame(...args)
    • Game Play
      • Match Data
        • startMatch()
        • completeMatch(..args)
        • getMatchHistoryById(...args)
        • getAllMatchHistory(...args)
    • Quest
      • getList()
    • Achievement
      • getList()
  • 📌 Links
    • Report an Issue
    • Telegram Community Channel
    • Twitter
    • Discord
    • Facebook
Powered by GitBook
On this page
  • Overview:
  • Usage:
  • Requirement:
  • Parameters:
  • Return:
  1. 🖥 SDK Integration Guides
  2. User Data
  3. Account Data

getUsername()

Overview:

Get user username

Usage:

const username = client.user.account.getUsername();

Requirement:

  • none

Parameters:

  • none

Return:

  • Success:

string
  • Failed:

undefined
PreviousgetName()NextgetGivenName()

Last updated 1 year ago