Class: RubyCord::Guild::CategoryChannel
- Inherits:
-
Channel
- Object
- DiscordModel
- Channel
- Channel
- RubyCord::Guild::CategoryChannel
- Includes:
- Internal::ChannelContainer
- Defined in:
- lib/rubycord/guild/channel/category.rb
Instance Attribute Summary
Attributes inherited from Channel
#permission_overwrites, #position
Attributes inherited from Channel
Instance Method Summary collapse
- #channels ⇒ Object
-
#create_news_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::NewsChannel>
The created news channel.
-
#create_stage_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::StageChannel>
The created stage channel.
-
#create_text_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::TextChannel>
The created text channel.
-
#create_voice_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::VoiceChannel>
The created voice channel.
Methods included from Internal::ChannelContainer
#news_channels, #stage_channels, #text_channels, #voice_channels
Methods inherited from Channel
#<=>, #==, #create_invite, #delete, #delete_permissions, #fetch_invites, #guild, #inspect, #mention, #move, #parent, #set_permissions, #to_s
Methods inherited from Channel
Methods inherited from DiscordModel
Instance Method Details
#channels ⇒ Object
13 14 15 16 17 |
# File 'lib/rubycord/guild/channel/category.rb', line 13 def channels @client.channels.values.filter do |channel| channel.parent == self && channel.is_a?(RubyCord::GuildChannel) end end |
#create_news_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::NewsChannel>
Returns The created news channel.
36 37 38 |
# File 'lib/rubycord/guild/channel/category.rb', line 36 def create_news_channel(*args, **kwargs) guild.create_news_channel(*args, parent: self, **kwargs) end |
#create_stage_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::StageChannel>
Returns The created stage channel.
43 44 45 |
# File 'lib/rubycord/guild/channel/category.rb', line 43 def create_stage_channel(*args, **kwargs) guild.create_stage_channel(*args, parent: self, **kwargs) end |
#create_text_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::TextChannel>
Returns The created text channel.
22 23 24 |
# File 'lib/rubycord/guild/channel/category.rb', line 22 def create_text_channel(*args, **kwargs) guild.create_text_channel(*args, parent: self, **kwargs) end |
#create_voice_channel(*args, **kwargs) ⇒ Async::Task<RubyCord::Guild::VoiceChannel>
Returns The created voice channel.
29 30 31 |
# File 'lib/rubycord/guild/channel/category.rb', line 29 def create_voice_channel(*args, **kwargs) guild.create_voice_channel(*args, parent: self, **kwargs) end |