Sha256: 4a9df39785ce7ef7c60368384c4242f26011e84d3edc08d29a3567c37490af30

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

module Discorb
  #
  # Represents a category in a guild.
  class CategoryChannel < Discorb::GuildChannel
    include Discorb::ChannelContainer

    def channels: -> Array[Discorb::GuildChannel]

    def create_text_channel: (
      String name,
      ?topic: String?,
      ?rate_limit_per_user: Integer?,
      ?slowmode: Integer?,
      ?position: Integer?,
      ?nsfw: bool?,
      ?permission_overwrites: Hash[(Discorb::Role
      | Discorb::Member), Discorb::PermissionOverwrite]?,
      ?parent: Discorb::CategoryChannel?,
      ?reason: String?
    ) -> Async::Task[Discorb::TextChannel]

    def create_voice_channel: (
      String name,
      ?bitrate: Integer,
      ?user_limit: Integer?,
      ?position: Integer?,
      ?permission_overwrites: Hash[(Discorb::Role
      | Discorb::Member), Discorb::PermissionOverwrite]?,
      ?parent: Discorb::CategoryChannel?,
      ?reason: String?
    ) -> Async::Task[Discorb::VoiceChannel]

    def create_news_channel: (
      String name,
      ?topic: String?,
      ?rate_limit_per_user: Integer?,
      ?slowmode: Integer?,
      ?position: Integer?,
      ?nsfw: bool?,
      ?permission_overwrites: Hash[(Discorb::Role
      | Discorb::Member), Discorb::PermissionOverwrite]?,
      ?parent: Discorb::CategoryChannel?,
      ?reason: String?
    ) -> Async::Task[Discorb::NewsChannel]

    def create_stage_channel: (
      String name,
      ?bitrate: Integer,
      ?position: Integer?,
      ?permission_overwrites: Hash[(Discorb::Role
      | Discorb::Member), Discorb::PermissionOverwrite]?,
      ?parent: Discorb::CategoryChannel?,
      ?reason: String?
    ) -> Async::Task[Discorb::StageChannel]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discorb-0.18.1 sig/discorb/channel/category.rbs
discorb-0.18.0 sig/discorb/channel/category.rbs