A Matrix user ID.

Constructors

  • Parse/validate and create a new UserId.

    Parameters

    • id: string

    Returns UserId

Accessors

  • get localpart(): string
  • Returns the user's localpart.

    Returns string

  • get serverName(): ServerName
  • Returns the server name of the user ID.

    Returns ServerName

Methods

  • Whether this user ID is a historical one.

    A historical user ID is one that doesn't conform to the latest specification of the user ID grammar but is still accepted because it was previously allowed.

    Returns boolean

  • Return the user ID as a string.

    Returns string