import { OrderBy } from './messages.js'; /** * Parameters for querying message history. */ export interface HistoryQueryParams { start?: number; end?: number; orderBy?: OrderBy; limit?: number; /** * Serial indicating the starting point for message retrieval. * This serial is specific to the region of the channel the client is connected to. Messages published within * the same region of the channel are guaranteed to be received in increasing serial order. * @defaultValue undefined (not used if not specified) */ fromSerial?: string; } /** * Parameters for sending a message reaction. */ export interface SendMessageReactionParams { /** * The type of reaction, must be one of {@link MessageReactionType}. */ type: string; /** * The reaction name to add; ie. the emoji. */ name: string; /** * The count of the reaction for type {@link MessageReactionType.Multiple}. * Defaults to 1 if not set. Not supported for other reaction types. * @defaultValue 1 */ count?: number; } /** * Parameters for deleting a message reaction. */ export interface DeleteMessageReactionParams { /** * The type of reaction, must be one of {@link MessageReactionType}. */ type: string; /** * The reaction name to remove, ie. the emoji. Required for all reaction types * except {@link MessageReactionType.Unique}. */ name?: string; }