class Discordrb::Light::LightServer
Represents a light server which only has a fraction of the properties of any other server.
Attributes
bot_is_owner[R]
@return [true, false] whether or not the LightBot
this server belongs to is the owner of the server.
bot_is_owner?[R]
@return [true, false] whether or not the LightBot
this server belongs to is the owner of the server.
bot_permissions[R]
@return [Discordrb::Permissions] the permissions the LightBot
has on this server
Public Class Methods
new(data, bot)
click to toggle source
@!visibility private
Calls superclass method
Discordrb::Light::UltraLightServer::new
# File lib/discordrb/light/data.rb, line 55 def initialize(data, bot) super(data, bot) @bot_is_owner = data['owner'] @bot_permissions = Discordrb::Permissions.new(data['permissions']) end