Class: Discordrb::Role::RoleWriter
- Inherits:
-
Object
- Object
- Discordrb::Role::RoleWriter
- Defined in:
- lib/discordrb/data.rb
Overview
Class that writes data for a Permissions object
Instance Method Summary collapse
-
#initialize(role, token) ⇒ RoleWriter
constructor
A new instance of RoleWriter.
- #write(bits) ⇒ Object
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 |