Class: Discordrb::Recipient

Inherits:
User
  • Object
show all
Includes:
MemberAttributes
Defined in:
lib/discordrb/data.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

#deaf, #joined_at, #mute, #roles, #server, #voice_channel

Attributes inherited from User

#game, #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, #current_bot?, #on, #pm

Methods included from UserAttributes

#avatar_url, #distinct, #mention

Methods included from IDObject

#==, #creation_time

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.



406
407
408
# File 'lib/discordrb/data.rb', line 406

def channel
  @channel
end

Instance Method Details

#inspectObject

Overwriting inspect for debug purposes



426
427
428
# File 'lib/discordrb/data.rb', line 426

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