Returns message history for a given thread in a certain direction. Defaults to querying messages before ts.
Use a bare-bones client and the command you need to make an API call.
import { ChatServiceClient, GetThreadHistoryCommand } from "@rivet-gg/chat"; // ES Modules import // const { ChatServiceClient, GetThreadHistoryCommand } = require("@rivet-gg/chat"); // CommonJS import const client = new ChatServiceClient(config); const command = new GetThreadHistoryCommand(input); const response = await client.send(command);
GetThreadHistoryCommandInput for command's input shape.
input
GetThreadHistoryCommandOutput for command's response shape.
response
config for ChatServiceClient's config shape.
config
Returns message history for a given thread in a certain direction. Defaults to querying messages before ts.
Use a bare-bones client and the command you need to make an API call.
import { ChatServiceClient, GetThreadHistoryCommand } from "@rivet-gg/chat"; // ES Modules import // const { ChatServiceClient, GetThreadHistoryCommand } = require("@rivet-gg/chat"); // CommonJS import const client = new ChatServiceClient(config); const command = new GetThreadHistoryCommand(input); const response = await client.send(command);GetThreadHistoryCommandInput for command's
inputshape.GetThreadHistoryCommandOutput for command's
responseshape.config for ChatServiceClient's
configshape.