This function and all other functions in this graphql sdk are deprecated. Please migrate to the new rest api.
This operation is only available on the server.
Required Permissions
Usage
import { whopSdk } from "@/lib/whop-sdk";
const result = await whopSdk.users.muteUser({
// The time the user is muted until, in milliseconds. If not provided, the user will be muted indefinitely
mutedUntil: 1716931200,
// The ID of the user to mute
userId: "user_XXXXXXXX" /* Required! */,
});
Example output