Sha256: 06226bd1a75f178ff25d55748e904aa660f3a45e93aaae8d402411cec7de719a
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
# frozen_string_literal: true module Discorb # # Module for container of channels. # module ChannelContainer # # Returns text channels. # # @return [Array<Discorb::TextChannel>] The text channels. # def text_channels channels.filter { |c| c.instance_of? TextChannel } end # # Returns voice channels. # # @return [Array<Discorb::VoiceChannel>] The voice channels. # def voice_channels channels.filter { |c| c.instance_of? VoiceChannel } end # # Returns news channels. # # @return [Array<Discorb::NewsChannel>] The news channels. # def news_channels channels.filter { |c| c.instance_of? NewsChannel } end # # Returns stage channels. # # @return [Array<Discorb::StageChannel>] The stage channels. # def stage_channels channels.filter { |c| c.instance_of? StageChannel } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.20.0 | lib/discorb/channel/container.rb |