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.
1048
1049
1050
|
# File 'lib/discorb/channel.rb', line 1048
def channels
@channels
end
|
Instance Method Details
#create_news_channel(*args, **kwargs) -> Object
1076
1077
1078
|
# File 'lib/discorb/channel.rb', line 1076
def create_news_channel(*args, **kwargs)
guild.create_news_channel(*args, parent: self, **kwargs)
end
|
#create_stage_channel(*args, **kwargs) -> Object
1080
1081
1082
|
# File 'lib/discorb/channel.rb', line 1080
def create_stage_channel(*args, **kwargs)
guild.create_stage_channel(*args, parent: self, **kwargs)
end
|
#create_text_channel(*args, **kwargs) -> Object
1068
1069
1070
|
# File 'lib/discorb/channel.rb', line 1068
def create_text_channel(*args, **kwargs)
guild.create_text_channel(*args, parent: self, **kwargs)
end
|
#create_voice_channel(*args, **kwargs) -> Object
1072
1073
1074
|
# File 'lib/discorb/channel.rb', line 1072
def create_voice_channel(*args, **kwargs)
guild.create_voice_channel(*args, parent: self, **kwargs)
end
|
#news_channel -> Object
1060
1061
1062
|
# File 'lib/discorb/channel.rb', line 1060
def news_channel
@channels.filter { |c| c.is_a? NewsChannel }
end
|
#stage_channels -> Object
1064
1065
1066
|
# File 'lib/discorb/channel.rb', line 1064
def stage_channels
@channels.filter { |c| c.is_a? StageChannel }
end
|
#text_channels -> Object
1052
1053
1054
|
# File 'lib/discorb/channel.rb', line 1052
def text_channels
@channels.filter { |c| c.is_a? TextChannel }
end
|
#voice_channels -> Object
1056
1057
1058
|
# File 'lib/discorb/channel.rb', line 1056
def voice_channels
@channels.filter { |c| c.is_a? VoiceChannel }
end
|