mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-22 02:34:10 +02:00
Power levels are also integers
This commit is contained in:
parent
e75a1836b8
commit
439b9d2925
|
|
@ -46,10 +46,10 @@ properties:
|
||||||
properties:
|
properties:
|
||||||
ban:
|
ban:
|
||||||
description: The level required to ban a user. Defaults to 50 if unspecified.
|
description: The level required to ban a user. Defaults to 50 if unspecified.
|
||||||
type: number
|
type: integer
|
||||||
events:
|
events:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: number
|
type: integer
|
||||||
description: The level required to send specific event types. This is a mapping from event type to power level required.
|
description: The level required to send specific event types. This is a mapping from event type to power level required.
|
||||||
title: Event power levels
|
title: Event power levels
|
||||||
type: object
|
type: object
|
||||||
|
|
@ -57,25 +57,25 @@ properties:
|
||||||
description: |-
|
description: |-
|
||||||
The default level required to send message events. Can be
|
The default level required to send message events. Can be
|
||||||
overridden by the ``events`` key. Defaults to 0 if unspecified.
|
overridden by the ``events`` key. Defaults to 0 if unspecified.
|
||||||
type: number
|
type: integer
|
||||||
invite:
|
invite:
|
||||||
description: The level required to invite a user. Defaults to 50 if unspecified.
|
description: The level required to invite a user. Defaults to 50 if unspecified.
|
||||||
type: number
|
type: integer
|
||||||
kick:
|
kick:
|
||||||
description: The level required to kick a user. Defaults to 50 if unspecified.
|
description: The level required to kick a user. Defaults to 50 if unspecified.
|
||||||
type: number
|
type: integer
|
||||||
redact:
|
redact:
|
||||||
description: The level required to redact an event. Defaults to 50 if unspecified.
|
description: The level required to redact an event. Defaults to 50 if unspecified.
|
||||||
type: number
|
type: integer
|
||||||
state_default:
|
state_default:
|
||||||
description: |-
|
description: |-
|
||||||
The default level required to send state events. Can be overridden
|
The default level required to send state events. Can be overridden
|
||||||
by the ``events`` key. Defaults to 50 if unspecified, but 0 if
|
by the ``events`` key. Defaults to 50 if unspecified, but 0 if
|
||||||
there is no ``m.room.power_levels`` event at all.
|
there is no ``m.room.power_levels`` event at all.
|
||||||
type: number
|
type: integer
|
||||||
users:
|
users:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: number
|
type: integer
|
||||||
description: The power levels for specific users. This is a mapping from ``user_id`` to power level for that user.
|
description: The power levels for specific users. This is a mapping from ``user_id`` to power level for that user.
|
||||||
title: User power levels
|
title: User power levels
|
||||||
type: object
|
type: object
|
||||||
|
|
@ -84,7 +84,7 @@ properties:
|
||||||
The default power level for every user in the room, unless their
|
The default power level for every user in the room, unless their
|
||||||
``user_id`` is mentioned in the ``users`` key. Defaults to 0 if
|
``user_id`` is mentioned in the ``users`` key. Defaults to 0 if
|
||||||
unspecified.
|
unspecified.
|
||||||
type: number
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
state_key:
|
state_key:
|
||||||
description: A zero-length string.
|
description: A zero-length string.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue