Class: Discordrb::Events::ChannelRecipientEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/discordrb/events/channels.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.



130
131
132
# File 'lib/discordrb/events/channels.rb', line 130

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



135
136
137
# File 'lib/discordrb/events/channels.rb', line 135

def recipient
  @recipient
end