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.
1015 1016 1017 |
# File 'lib/discorb/channel.rb', line 1015 def joined_at @joined_at end |
Instance Method Details
#id -> Object
1032 1033 1034 |
# File 'lib/discorb/channel.rb', line 1032 def id @user_id end |
#inspect -> Object
1040 1041 1042 |
# File 'lib/discorb/channel.rb', line 1040 def inspect "#<#{self.class} id=#{@id.inspect}>" end |
#member -> Object
1028 1029 1030 |
# File 'lib/discorb/channel.rb', line 1028 def member thread && thread.members[@user_id] end |
#thread -> Object
1024 1025 1026 |
# File 'lib/discorb/channel.rb', line 1024 def thread @client.channels[@thread_id] end |
#user -> Object
1036 1037 1038 |
# File 'lib/discorb/channel.rb', line 1036 def user @cilent.users[@user_id] end |