toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-core
/
dev.kord.core.entity
/
Template
Template
class
Template
(
val
data
:
TemplateData
,
val
kord
:
Kord
)
:
KordObject
,
TemplateBehavior
(
source
)
Members
Members & Extensions
Constructors
Template
Link copied to clipboard
constructor
(
data
:
TemplateData
,
kord
:
Kord
)
Properties
code
Link copied to clipboard
open
override
val
code
:
String
created
At
Link copied to clipboard
val
createdAt
:
Instant
creator
Link copied to clipboard
val
creator
:
User
creator
Id
Link copied to clipboard
val
creatorId
:
Snowflake
data
Link copied to clipboard
val
data
:
TemplateData
description
Link copied to clipboard
val
description
:
String
?
dirty
Link copied to clipboard
val
dirty
:
Boolean
?
guild
Id
Link copied to clipboard
open
override
val
guildId
:
Snowflake
kord
Link copied to clipboard
open
override
val
kord
:
Kord
The kord instance that created this object.
name
Link copied to clipboard
val
name
:
String
partial
Guild
Link copied to clipboard
val
partialGuild
:
PartialGuild
updated
At
Link copied to clipboard
val
updatedAt
:
Instant
usage
Count
Link copied to clipboard
val
usageCount
:
Int
Functions
create
Guild
Link copied to clipboard
suspend
fun
TemplateBehavior
.
createGuild
(
name
:
String
,
builder
:
GuildFromTemplateCreateBuilder
.
(
)
->
Unit
)
:
Guild
delete
Link copied to clipboard
open
suspend
fun
delete
(
)
:
Template
edit
Link copied to clipboard
suspend
fun
TemplateBehavior
.
edit
(
builder
:
GuildTemplateModifyBuilder
.
(
)
->
Unit
)
:
Template
sync
Link copied to clipboard
open
suspend
fun
sync
(
)
:
Template