Class: MijDiscord::Events::Role
- Defined in:
- lib/mij-discord/events/member.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Attributes inherited from Server
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize(bot, server, role) ⇒ Role
constructor
A new instance of Role.
Methods inherited from EventBase
delegate_method, filter_match, inherited, #inspect, #trigger?
Constructor Details
#initialize(bot, server, role) ⇒ Role
Returns a new instance of Role.
10 11 12 13 14 |
# File 'lib/mij-discord/events/member.rb', line 10 def initialize(bot, server, role) super(bot, server) @role = role end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
5 6 7 |
# File 'lib/mij-discord/events/member.rb', line 5 def role @role end |