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
-
#news_channels ⇒ Array<RubyCord::Guild::NewsChannel>
Returns news channels.
-
#stage_channels ⇒ Array<RubyCord::Guild::StageChannel>
Returns stage channels.
-
#text_channels ⇒ Array<RubyCord::Guild::TextChannel>
Returns text channels.
-
#voice_channels ⇒ Array<RubyCord::Guild::VoiceChannel>
Returns voice channels.
Instance Method Details
#news_channels ⇒ Array<RubyCord::Guild::NewsChannel>
Returns news channels.
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_channels ⇒ Array<RubyCord::Guild::StageChannel>
Returns stage channels.
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_channels ⇒ Array<RubyCord::Guild::TextChannel>
Returns text channels.
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_channels ⇒ Array<RubyCord::Guild::VoiceChannel>
Returns voice channels.
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 |