Class: MijDiscord::Events::Recipient
- Defined in:
- lib/mij-discord/events/channel.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#recipient ⇒ Object
(also: #user)
readonly
Returns the value of attribute recipient.
Attributes inherited from Channel
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize(bot, channel, recipient) ⇒ Recipient
constructor
A new instance of Recipient.
Methods inherited from EventBase
delegate_method, filter_match, inherited, #trigger?
Constructor Details
#initialize(bot, channel, recipient) ⇒ Recipient
Returns a new instance of Recipient.
40 41 42 43 44 |
# File 'lib/mij-discord/events/channel.rb', line 40 def initialize(bot, channel, recipient) super(bot, channel) @recipient = recipient end |
Instance Attribute Details
#recipient ⇒ Object (readonly) Also known as: user
Returns the value of attribute recipient.
34 35 36 |
# File 'lib/mij-discord/events/channel.rb', line 34 def recipient @recipient end |