class Discordrb::Light::LightProfile

Represents the bot account used for the light bot, but without any methods to change anything.

Public Class Methods

new(data, bot) click to toggle source

@!visibility private

# File lib/discordrb/light/data.rb, line 12
def initialize(data, bot)
  @bot = bot

  @username = data['username']
  @id = data['id'].to_i
  @discriminator = data['discriminator']
  @avatar_id = data['avatar']

  @bot_account = false
  @bot_account = true if data['bot']

  @verified = data['verified']

  @email = data['email']
end