mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
client: WhoIs -> AdminWhoIs
Some checks failed
Some checks failed
This commit is contained in:
parent
5123ed8c54
commit
b2f80c3870
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue