Class: Discorb::ThreadChannel::Member
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::ThreadChannel::Member
- Defined in:
- lib/discorb/channel.rb
Overview
Repre
Instance Attribute Summary collapse
-
#joined_at -> Object
readonly
Returns the value of attribute joined_at.
Instance Method Summary collapse
- #id -> Object
-
#initialize(cilent, data) -> Member
constructor
A new instance of Member.
- #inspect -> Object
- #member -> Object
- #thread -> Object
- #user -> Object
Methods inherited from DiscordModel
Constructor Details
Instance Attribute Details
#joined_at -> Object (readonly)
Returns the value of attribute joined_at.
1013 1014 1015 |
# File 'lib/discorb/channel.rb', line 1013 def joined_at @joined_at end |
Instance Method Details
#id -> Object
1030 1031 1032 |
# File 'lib/discorb/channel.rb', line 1030 def id @user_id end |
#inspect -> Object
1038 1039 1040 |
# File 'lib/discorb/channel.rb', line 1038 def inspect "#<#{self.class} id=#{@id.inspect}>" end |
#member -> Object
1026 1027 1028 |
# File 'lib/discorb/channel.rb', line 1026 def member thread && thread.members[@user_id] end |
#thread -> Object
1022 1023 1024 |
# File 'lib/discorb/channel.rb', line 1022 def thread @client.channels[@thread_id] end |
#user -> Object
1034 1035 1036 |
# File 'lib/discorb/channel.rb', line 1034 def user @cilent.users[@user_id] end |