Class: Discordrb::Call
- Inherits:
-
Object
- Object
- Discordrb::Call
- Defined in:
- lib/discordrb/data/call.rb
Overview
A call in a private channel.
Instance Attribute Summary collapse
-
#ended_at ⇒ Time?
readonly
The time at when the call ended.
Instance Method Summary collapse
-
#participants ⇒ Array<User>
Get the users that participated in this call.
Instance Attribute Details
#ended_at ⇒ Time? (readonly)
Returns the time at when the call ended.
7 8 9 |
# File 'lib/discordrb/data/call.rb', line 7 def ended_at @ended_at end |
Instance Method Details
#participants ⇒ Array<User>
Get the users that participated in this call.
18 19 20 |
# File 'lib/discordrb/data/call.rb', line 18 def participants @participants ||= @participant_ids.map { |participant| @bot.user(participant) } end |