Sets the current identity's game activity. This activity will automatically be removed when the identity goes offline.
Use a bare-bones client and the command you need to make an API call.
import { IdentityServiceClient, SetIdentityGameActivityCommand } from "@rivet-gg/identity"; // ES Modules import // const { IdentityServiceClient, SetIdentityGameActivityCommand } = require("@rivet-gg/identity"); // CommonJS import const client = new IdentityServiceClient(config); const command = new SetIdentityGameActivityCommand(input); const response = await client.send(command);
SetIdentityGameActivityCommandInput for command's input shape.
input
SetIdentityGameActivityCommandOutput for command's response shape.
response
config for IdentityServiceClient's config shape.
config
Sets the current identity's game activity. This activity will automatically be removed when the identity goes offline.
Use a bare-bones client and the command you need to make an API call.
import { IdentityServiceClient, SetIdentityGameActivityCommand } from "@rivet-gg/identity"; // ES Modules import // const { IdentityServiceClient, SetIdentityGameActivityCommand } = require("@rivet-gg/identity"); // CommonJS import const client = new IdentityServiceClient(config); const command = new SetIdentityGameActivityCommand(input); const response = await client.send(command);SetIdentityGameActivityCommandInput for command's
inputshape.SetIdentityGameActivityCommandOutput for command's
responseshape.config for IdentityServiceClient's
configshape.