Sha256: c73f66dfdcc97caaebc3235805ae868dd88225b29fe028eef3881fcaeab09d32
Contents?: true
Size: 929 Bytes
Versions: 5
Compression:
Stored size: 929 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
5 entries across 5 versions & 1 rubygems