class Discorb::ThreadChannel::Member

Attributes

joined_at[R]

Public Class Methods

new(cilent, data) click to toggle source
# File lib/discorb/channel.rb, line 1000
def initialize(cilent, data)
  @cilent = cilent
  @thread_id = data[:id]
  @user_id = data[:user_id]
  @joined_at = Time.iso8601(data[:join_timestamp])
end

Public Instance Methods

id() click to toggle source
# File lib/discorb/channel.rb, line 1015
def id
  @user_id
end
inspect() click to toggle source
# File lib/discorb/channel.rb, line 1023
def inspect
  "#<#{self.class} id=#{@id.inspect}>"
end
member() click to toggle source
# File lib/discorb/channel.rb, line 1011
def member
  thread && thread.members[@user_id]
end
thread() click to toggle source
# File lib/discorb/channel.rb, line 1007
def thread
  @client.channels[@thread_id]
end
user() click to toggle source
# File lib/discorb/channel.rb, line 1019
def user
  @cilent.users[@user_id]
end