Class: Discordrb::Recipient

Inherits:
User
  • Object
show all
Includes:
MemberAttributes
Defined in:
lib/discordrb/data/recipient.rb

Overview

Recipients are members on private channels - they exist for completeness purposes, but all the attributes will be empty.

Instance Attribute Summary collapse

Attributes included from MemberAttributes

#boosting_since, #communication_disabled_until, #joined_at, #nick, #roles, #server

Attributes inherited from User

#activities, #client_status, #status

Attributes included from UserAttributes

#avatar_id, #bot_account, #discriminator, #username

Attributes included from IDObject

#id

Instance Method Summary collapse

Methods inherited from User

#await, #await!, #current_bot?, #dnd?, #game, #idle?, #offline?, #on, #online?, #pm, #send_file, #stream_type, #stream_url, #webhook?

Methods included from UserAttributes

#avatar_url, #distinct, #mention

Methods included from IDObject

#==, #creation_time, synthesise

Instance Attribute Details

#channelChannel (readonly)

Returns the private channel this recipient is the recipient of.

Returns:

  • (Channel)

    the private channel this recipient is the recipient of.



10
11
12
# File 'lib/discordrb/data/recipient.rb', line 10

def channel
  @channel
end

Instance Method Details

#inspectObject

Overwriting inspect for debug purposes



30
31
32
# File 'lib/discordrb/data/recipient.rb', line 30

def inspect
  "<Recipient user=#{@user.inspect} channel=#{@channel.inspect}>"
end