Class: OnyxCord::Events::ChannelRecipientEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/onyxcord/events/channels/recipients.rb

Overview

Generic subclass for recipient events (add/remove)

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#channelChannel (readonly)

Returns the channel in question.

Returns:

  • (Channel)

    the channel in question.



10
11
12
# File 'lib/onyxcord/events/channels/recipients.rb', line 10

def channel
  @channel
end

#recipientRecipient (readonly)

Returns the recipient that was added/removed from the group.

Returns:

  • (Recipient)

    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