Class: Discorb::CategoryChannel
Instance Attribute Summary collapse
Attributes inherited from GuildChannel
#permission_overwrites, #position
Attributes inherited from Channel
#id, #name
Instance Method Summary
collapse
#<=>, #==, #delete!, #guild, #inspect, #mention, #move, #parent, #to_s
Methods inherited from Channel
#==, #inspect, #type
#==, #eql?, #hash
Instance Attribute Details
#channels -> Object
Returns the value of attribute channels.
1013
1014
1015
|
# File 'lib/discorb/channel.rb', line 1013
def channels
@channels
end
|
Instance Method Details
#create_news_channel(*args, **kwargs) -> Object
1041
1042
1043
|
# File 'lib/discorb/channel.rb', line 1041
def create_news_channel(*args, **kwargs)
guild.create_news_channel(*args, parent: self, **kwargs)
end
|
#create_stage_channel(*args, **kwargs) -> Object
1045
1046
1047
|
# File 'lib/discorb/channel.rb', line 1045
def create_stage_channel(*args, **kwargs)
guild.create_stage_channel(*args, parent: self, **kwargs)
end
|
#create_text_channel(*args, **kwargs) -> Object
1033
1034
1035
|
# File 'lib/discorb/channel.rb', line 1033
def create_text_channel(*args, **kwargs)
guild.create_text_channel(*args, parent: self, **kwargs)
end
|
#create_voice_channel(*args, **kwargs) -> Object
1037
1038
1039
|
# File 'lib/discorb/channel.rb', line 1037
def create_voice_channel(*args, **kwargs)
guild.create_voice_channel(*args, parent: self, **kwargs)
end
|
#news_channel -> Object
1025
1026
1027
|
# File 'lib/discorb/channel.rb', line 1025
def news_channel
@channels.filter { |c| c.is_a? NewsChannel }
end
|
#stage_channels -> Object
1029
1030
1031
|
# File 'lib/discorb/channel.rb', line 1029
def stage_channels
@channels.filter { |c| c.is_a? StageChannel }
end
|
#text_channels -> Object
1017
1018
1019
|
# File 'lib/discorb/channel.rb', line 1017
def text_channels
@channels.filter { |c| c.is_a? TextChannel }
end
|
#voice_channels -> Object
1021
1022
1023
|
# File 'lib/discorb/channel.rb', line 1021
def voice_channels
@channels.filter { |c| c.is_a? VoiceChannel }
end
|