Class: OnyxCord::Events::ChannelRecipientEvent
- Defined in:
- lib/onyxcord/events/channels/recipients.rb
Overview
Generic subclass for recipient events (add/remove)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#channel ⇒ Channel
readonly
The channel in question.
-
#recipient ⇒ Recipient
readonly
The recipient that was added/removed from the group.
Attributes inherited from Event
Instance Attribute Details
#channel ⇒ Channel (readonly)
Returns the channel in question.
10 11 12 |
# File 'lib/onyxcord/events/channels/recipients.rb', line 10 def channel @channel end |
#recipient ⇒ Recipient (readonly)
Returns the recipient that was added/removed from the group.
15 16 17 |
# File 'lib/onyxcord/events/channels/recipients.rb', line 15 def recipient @recipient end |