Class: Discorb::ThreadChannel::Member
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::ThreadChannel::Member
- Defined in:
- lib/discorb/channel.rb
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.
963 964 965 |
# File 'lib/discorb/channel.rb', line 963 def joined_at @joined_at end |
Instance Method Details
#id -> Object
980 981 982 |
# File 'lib/discorb/channel.rb', line 980 def id @user_id end |
#inspect -> Object
988 989 990 |
# File 'lib/discorb/channel.rb', line 988 def inspect "#<#{self.class} id=#{@id.inspect}>" end |
#member -> Object
976 977 978 |
# File 'lib/discorb/channel.rb', line 976 def member thread && thread.members[@user_id] end |
#thread -> Object
972 973 974 |
# File 'lib/discorb/channel.rb', line 972 def thread @client.channels[@thread_id] end |
#user -> Object
984 985 986 |
# File 'lib/discorb/channel.rb', line 984 def user @cilent.users[@user_id] end |