This operation is only available on the server.
import { whopApi } from "@/lib/whop-api";

const result = await whopApi.messages.sendDirectMessageToUser({
	toUserIdOrUsername: "xxxxxxxxxxx" /* Required! */,

	message: "some string" /* Required! */,
});

Example output:

const response = "some string";