GuildVoice

public class GuildVoice: GuildChannel, Updatable

Representation of a guild voice channel

  • Parent Class

    Declaration

    Swift

    public internal(set) weak var sword: Sword?
  • Bitrate (in bits) for channel

    Declaration

    Swift

    public internal(set) var bitrate: Int?
  • Channel Category this channel belongs to

    Declaration

    Swift

    public var category: GuildCategory?
  • Guild object for this channel

    Declaration

    Swift

    public var guild: Guild?
  • id

    ID of the channel

    Declaration

    Swift

    public let id: Snowflake
  • Name of channel

    Declaration

    Swift

    public internal(set) var name: String?
  • Parent Category ID of this channel

    Declaration

    Swift

    public internal(set) var parentId: Snowflake?
  • Collection of Overwrites mapped by OverwriteID

    Declaration

    Swift

    public internal(set) var permissionOverwrites = [Snowflake : Overwrite]()
  • Position of channel

    Declaration

    Swift

    public internal(set) var position: Int?
  • Indicates what type of channel this is (.guildVoice)

    Declaration

    Swift

    public let type = ChannelType.guildVoice
  • (Voice) User limit for voice channel

    Declaration

    Swift

    public internal(set) var userLimit: Int?
  • Moves a member in this voice channel to another voice channel (if they are in it)

    Declaration

    Swift

    public func moveMember(
        _ userId: Snowflake,
        then completion: ((RequestError?) -> ())? = nil
      )