Sha256: e1e1cd1dba2953034778126fb3c1a047f583e9c58a024536cf0ba6345b263db9
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
# frozen_string_literal: true module Discorb # # Represents a category in a guild. # class CategoryChannel < GuildChannel @channel_type = 4 include Discorb::ChannelContainer def channels @client.channels.values.filter { |channel| channel.parent == self } end def create_text_channel(*args, **kwargs) guild.create_text_channel(*args, parent: self, **kwargs) end def create_voice_channel(*args, **kwargs) guild.create_voice_channel(*args, parent: self, **kwargs) end def create_news_channel(*args, **kwargs) guild.create_news_channel(*args, parent: self, **kwargs) end def create_stage_channel(*args, **kwargs) guild.create_stage_channel(*args, parent: self, **kwargs) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.20.0 | lib/discorb/channel/category.rb |