DiscordNull

@Serializable(with = DiscordNull.Serializer::class)
class DiscordNull(source)

Deprecated (with error)

This class is similar to 'Nothing' as it has no instances. The only reason it existed was to have a @Serializable version of 'Nothing'. However, since Kotlin 1.8.0 and kotlinx.serialization 1.5.0-RC 'Nothing' is a serializable class. This means 'DiscordNull' isn't needed anymore and should be replaced with 'Nothing'.

Replace with

import kotlin.Nothing
Nothing

Type to represent a Discord value that can only be null. This class cannot be instantiated.