All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.builder.guild.EmojiModifyBuilder.kt Maven / Gradle / Ivy

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
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy