commonMain.service.SkuService.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.service
import dev.kord.common.entity.DiscordSku
import dev.kord.common.entity.Snowflake
import dev.kord.rest.request.RequestHandler
import dev.kord.rest.route.Route
public class SkuService(requestHandler: RequestHandler) : RestService(requestHandler) {
public suspend fun listSkus(applicationId: Snowflake): List = call(Route.SkusList) {
keys[Route.ApplicationId] = applicationId
}
}