Class: Discordrb::Role::RoleWriter
- Inherits:
-
Object
- Object
- Discordrb::Role::RoleWriter
- Defined in:
- lib/discordrb/data.rb
Overview
This class is used internally as a wrapper to a Role object that allows easy writing of permission data.
Instance Method Summary collapse
-
#write(bits) ⇒ Object
Write the specified permission data to the role, without updating the permission cache.
Instance Method Details
#write(bits) ⇒ Object
Write the specified permission data to the role, without updating the permission cache
320 321 322 |
# File 'lib/discordrb/data.rb', line 320 def write(bits) @role.send(:packed=, bits, false) end |