Locale

@Serializable(with = Locale.NewSerializer::class)
data class Locale(val language: String, val country: String? = null)(source)

Representation of a locale supported by Discord.

Constructors

Link copied to clipboard
constructor(language: String, country: String? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
val country: String? = null

A country code representing the country.

Link copied to clipboard

A language code representing the language.

Functions

Link copied to clipboard