toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
servers-service
/
piperkt.services.servers.domain.factory
/
ServerFactory
Server
Factory
object
ServerFactory
:
Factory
<
Server
>
Members
Functions
create
Server
Link copied to clipboard
fun
createServer
(
name
:
String
,
description
:
String
,
owner
:
String
,
channels
:
List
<
Channel
>
=
emptyList()
,
users
:
List
<
String
>
=
listOf(owner)
,
id
:
String
=
ServerId().value
)
:
Server