Class: Discordrb::Recipient
- 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
-
#channel ⇒ Channel
readonly
The private channel this recipient is the recipient of.
Attributes included from MemberAttributes
#boosting_since, #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
Instance Method Summary collapse
-
#inspect ⇒ Object
Overwriting inspect for debug purposes.
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
#channel ⇒ Channel (readonly)
Returns 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
#inspect ⇒ Object
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 |