Skip to content

Commit aa1aeed

Browse files
authored
fix documentation for "at" parameter in members function (#5490)
1 parent 4732aa8 commit aa1aeed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6907,15 +6907,15 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
69076907
/**
69086908
* @param includeMembership - the membership type to include in the response
69096909
* @param excludeMembership - the membership type to exclude from the response
6910-
* @param atEventId - the id of the event for which moment in the timeline the members should be returned for
6910+
* @param atSyncToken - the point in time, as a sync pagination token, for when the members should be returned for
69116911
* @returns Promise which resolves: dictionary of userid to profile information
69126912
* @returns Rejects: with an error response.
69136913
*/
69146914
public members(
69156915
roomId: string,
69166916
includeMembership?: string,
69176917
excludeMembership?: string,
6918-
atEventId?: string,
6918+
atSyncToken?: string,
69196919
): Promise<{ [userId: string]: IStateEventWithRoomId[] }> {
69206920
const queryParams: Record<string, string> = {};
69216921
if (includeMembership) {
@@ -6924,8 +6924,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
69246924
if (excludeMembership) {
69256925
queryParams.not_membership = excludeMembership;
69266926
}
6927-
if (atEventId) {
6928-
queryParams.at = atEventId;
6927+
if (atSyncToken) {
6928+
queryParams.at = atSyncToken;
69296929
}
69306930

69316931
const queryString = utils.encodeParams(queryParams);

0 commit comments

Comments
 (0)