@wildix/wda-stream-client > UpdatePresenceLastSeenCommand
UpdatePresenceLastSeenCommand class
Updates the user's last seen presence information.
Signature:
export declare class UpdatePresenceLastSeenCommand extends UpdatePresenceLastSeenCommand_base
Extends: UpdatePresenceLastSeenCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaStreamClient, UpdatePresenceLastSeenCommand } from "@wildix/wda-stream-client"; // ES Modules import
// const { WdaStreamClient, UpdatePresenceLastSeenCommand } = require("@wildix/wda-stream-client"); // CommonJS import
const client = new WdaStreamClient(config);
const input = { // UpdatePresenceLastSeenInput
userId: "STRING_VALUE",
};
const command = new UpdatePresenceLastSeenCommand(input);
const response = await client.send(command);
// {};