commonMain.builder.guild.EmojiModifyBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-rest Show documentation
Show all versions of kord-rest Show documentation
Idiomatic Kotlin Wrapper for The Discord API
The newest version!
package dev.kord.rest.builder.guild
import dev.kord.rest.builder.AuditRequestBuilder
import dev.kord.common.annotation.KordDsl
import dev.kord.common.entity.Snowflake
import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.delegate.delegate
import dev.kord.rest.json.request.EmojiModifyRequest
@KordDsl
public class EmojiModifyBuilder : AuditRequestBuilder {
override var reason: String? = null
private var _name: Optional = Optional.Missing()
public var name: String? by ::_name.delegate()
private var _roles: Optional?> = Optional.Missing()
public var roles: MutableSet? by ::_roles.delegate()
override fun toRequest(): EmojiModifyRequest = EmojiModifyRequest(
name = _name,
roles = _roles
)
}