@wppconnect/wa-js - v4.6.0
    Preparing search index...

    Interface GetUsernameResult

    interface GetUsernameResult {
        isPhoneNumberKnown: boolean;
        oldUsername?: string;
        username?: string;
        usernameChanged: boolean;
        wasPreviouslyKnown: boolean;
    }
    Index
    isPhoneNumberKnown: boolean

    Whether the phone number behind the LID is known locally

    oldUsername?: string

    The previously stored username, when it changed

    username?: string

    The current username, undefined when the contact has none

    usernameChanged: boolean

    Whether the username differs from the one previously stored

    wasPreviouslyKnown: boolean

    Whether a username was already known for this contact