Class: Discordrb::Call

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/call.rb

Overview

A call in a private channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ended_atTime? (readonly)

Returns the time at when the call ended.

Returns:

  • (Time, nil)

    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

#participantsArray<User>

Get the users that participated in this call.

Returns:

  • (Array<User>)

    the participants of this call.



18
19
20
# File 'lib/discordrb/data/call.rb', line 18

def participants
  @participants ||= @participant_ids.map { |participant| @bot.user(participant) }
end