Class: Discordrb::Role::RoleWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data.rb

Overview

Class that writes data for a Permissions object

Instance Method Summary collapse

Constructor Details

#initialize(role, token) ⇒ RoleWriter

Returns a new instance of RoleWriter.



189
190
191
192
# File 'lib/discordrb/data.rb', line 189

def initialize(role, token)
  @role = role
  @token = token
end

Instance Method Details

#write(bits) ⇒ Object



194
195
196
# File 'lib/discordrb/data.rb', line 194

def write(bits)
  @role.send(:packed=, bits, false)
end