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

commonMain.builder.user.GroupDMCreateBuilder.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.rest.builder.user

import dev.kord.common.annotation.KordDsl
import dev.kord.common.entity.Snowflake
import dev.kord.rest.builder.RequestBuilder
import dev.kord.rest.json.request.GroupDMCreateRequest

@KordDsl
public class GroupDMCreateBuilder : RequestBuilder {

    public val tokens: MutableList = mutableListOf()
    public val nicknames: MutableMap = mutableMapOf()

    override fun toRequest(): GroupDMCreateRequest = GroupDMCreateRequest(
        tokens.toList(),
        nicknames.mapKeys { it.value }
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy