From b2f80c3870b0a931c1062efb476cc4171b05da99 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Thu, 11 Sep 2025 19:06:06 +0100 Subject: [PATCH] client: WhoIs -> AdminWhoIs --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 05e7a296..034b1bc3 100644 --- a/client.go +++ b/client.go @@ -2562,10 +2562,10 @@ func (cli *Client) ReportRoom(ctx context.Context, roomID id.RoomID, reason stri return err } -// WhoIs fetches session information belonging to a specific user. Typically requires being a server admin. +// AdminWhoIs fetches session information belonging to a specific user. Typically requires being a server admin. // // https://spec.matrix.org/v1.15/client-server-api/#get_matrixclientv3adminwhoisuserid -func (cli *Client) WhoIs(ctx context.Context, userID id.UserID) (resp RespWhoIs, err error) { +func (cli *Client) AdminWhoIs(ctx context.Context, userID id.UserID) (resp RespWhoIs, err error) { urlPath := cli.BuildClientURL("v3", "admin", "whois", userID) _, err = cli.MakeRequest(ctx, http.MethodGet, urlPath, nil, &resp) return