Class: MijDiscord::Events::Recipient

Inherits:
Channel show all
Defined in:
lib/mij-discord/events/channel.rb

Direct Known Subclasses

AddRecipient, RemoveRecipient

Instance Attribute Summary collapse

Attributes inherited from Channel

#channel

Attributes inherited from Generic

#bot

Instance Method Summary collapse

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

#recipientObject (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