Module: RubyCord::Internal::ChannelContainer

Included in:
Guild, Guild::CategoryChannel
Defined in:
lib/rubycord/internal/channel_container.rb

Overview

Module for container of channels.

Instance Method Summary collapse

Instance Method Details

#news_channelsArray<RubyCord::Guild::NewsChannel>

Returns news channels.

Returns:



30
31
32
# File 'lib/rubycord/internal/channel_container.rb', line 30

def news_channels
  channels.filter { |c| c.instance_of? RubyCord::Guild::NewsChannel }
end

#stage_channelsArray<RubyCord::Guild::StageChannel>

Returns stage channels.

Returns:



39
40
41
# File 'lib/rubycord/internal/channel_container.rb', line 39

def stage_channels
  channels.filter { |c| c.instance_of? RubyCord::Guild::StageChannel }
end

#text_channelsArray<RubyCord::Guild::TextChannel>

Returns text channels.

Returns:



12
13
14
# File 'lib/rubycord/internal/channel_container.rb', line 12

def text_channels
  channels.filter { |c| c.instance_of? RubyCord::Guild::TextChannel }
end

#voice_channelsArray<RubyCord::Guild::VoiceChannel>

Returns voice channels.

Returns:



21
22
23
# File 'lib/rubycord/internal/channel_container.rb', line 21

def voice_channels
  channels.filter { |c| c.instance_of? RubyCord::Guild::VoiceChannel }
end