trixnity-core
3.10.0
common
trixnity-core
/
net.folivo.trixnity.core.model.events.m.room
/
PowerLevelsEventContent
Power
Levels
Event
Content
@
Serializable
data
class
PowerLevelsEventContent
(
val
ban
:
Int
=
50
,
val
events
:
Map
<
EventType
,
Int
>
=
emptyMap()
,
val
eventsDefault
:
Int
=
0
,
val
invite
:
Int
=
0
,
val
kick
:
Int
=
50
,
val
redact
:
Int
=
50
,
val
stateDefault
:
Int
=
50
,
val
users
:
Map
<
UserId
,
Int
>
=
emptyMap()
,
val
usersDefault
:
Int
=
0
,
val
notifications
:
PowerLevelsEventContent.Notifications
?
=
null
)
:
StateEventContent
See also
matrix spec
Members
Constructors
Power
Levels
Event
Content
Link copied to clipboard
constructor
(
ban
:
Int
=
50
,
events
:
Map
<
EventType
,
Int
>
=
emptyMap()
,
eventsDefault
:
Int
=
0
,
invite
:
Int
=
0
,
kick
:
Int
=
50
,
redact
:
Int
=
50
,
stateDefault
:
Int
=
50
,
users
:
Map
<
UserId
,
Int
>
=
emptyMap()
,
usersDefault
:
Int
=
0
,
notifications
:
PowerLevelsEventContent.Notifications
?
=
null
)
Types
Notifications
Link copied to clipboard
@
Serializable
data
class
Notifications
(
val
room
:
Int
=
50
)
Properties
ban
Link copied to clipboard
val
ban
:
Int
=
50
events
Link copied to clipboard
val
events
:
Map
<
EventType
,
Int
>
events
Default
Link copied to clipboard
val
eventsDefault
:
Int
=
0
invite
Link copied to clipboard
val
invite
:
Int
=
0
kick
Link copied to clipboard
val
kick
:
Int
=
50
notifications
Link copied to clipboard
val
notifications
:
PowerLevelsEventContent.Notifications
?
=
null
redact
Link copied to clipboard
val
redact
:
Int
=
50
state
Default
Link copied to clipboard
val
stateDefault
:
Int
=
50
users
Link copied to clipboard
val
users
:
Map
<
UserId
,
Int
>
users
Default
Link copied to clipboard
val
usersDefault
:
Int
=
0