enum Servo::Model::User::PremiumType

Overview

The type of nitro subscription on a user's account.

See https://discord.com/developers/docs/resources/user#user-object-premium-types.

Defined in:

model/user.cr

Enum Members

None = 0_u8
NitroClassic = 1_u8
Nitro = 2_u8

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def nitro? #

[View source]
def nitro_classic? #

[View source]
def none? #

[View source]