TemplateService
Functions
Link copied to clipboard
suspend fun createGuildFromTemplate(code: String, request: GuildFromTemplateCreateRequest): DiscordGuild
Create a new guild based on a template with the given code and configured by the request, returns the created guild.
inline suspend fun createGuildFromTemplate(code: String, name: String, builder: GuildFromTemplateCreateBuilder.() -> Unit): DiscordGuild
Link copied to clipboard
suspend fun createGuildTemplate(guildId: Snowflake, request: GuildTemplateCreateRequest): DiscordTemplate
inline suspend fun createGuildTemplate(guildId: Snowflake, name: String, builder: GuildTemplateCreateBuilder.() -> Unit): DiscordTemplate
Link copied to clipboard
Link copied to clipboard
Returns a DiscordTemplate from the given code.
Link copied to clipboard
Returns a list of DiscordTemplate given guildId.
Link copied to clipboard
suspend fun modifyGuildTemplate(guildId: Snowflake, code: String, request: GuildTemplateModifyRequest): DiscordTemplate
inline suspend fun modifyGuildTemplate(guildId: Snowflake, code: String, builder: GuildTemplateModifyBuilder.() -> Unit): DiscordTemplate
Link copied to clipboard