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

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

package dev.kord.rest.builder.guild

import dev.kord.common.annotation.KordDsl
import dev.kord.common.entity.Snowflake
import dev.kord.rest.Image
import dev.kord.rest.builder.AuditRequestBuilder
import dev.kord.rest.json.request.EmojiCreateRequest

@KordDsl
public class EmojiCreateBuilder(
    public var name: String,
    public var image: Image,
) : AuditRequestBuilder {
    override var reason: String? = null

    public var roles: MutableSet = mutableSetOf()

    override fun toRequest(): EmojiCreateRequest = EmojiCreateRequest(
        name = name,
        image = image.dataUri,
        roles = roles
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy