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.
215 216 217 218 |
# File 'lib/discordrb/data.rb', line 215 def initialize(role, token) @role = role @token = token end |
Instance Method Details
#write(bits) ⇒ Object
220 221 222 |
# File 'lib/discordrb/data.rb', line 220 def write(bits) @role.send(:packed=, bits, false) end |