diff --git a/responses.go b/responses.go index 1b9b066..c729d5b 100644 --- a/responses.go +++ b/responses.go @@ -90,6 +90,11 @@ type RespUserInteractive struct { Error string `json:"error"` } +// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname +type RespUserDisplayName struct { + DisplayName string `json:"displayname"` +} + // HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName. func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool { for _, f := range r.Flows {