Privileges

public struct Privileges: OptionSet

Privileges of a ChatUser. Privileges can be added by extending this struct and adding static properties.

  • Privileges of a ChatUser. Privileges can be added by extending this struct and adding static properties.

    Declaration

    Swift

    public let rawValue: UInt
  • Privileges of a ChatUser. Privileges can be added by extending this struct and adding static properties.

    Declaration

    Swift

    public init(rawValue: Privileges.RawValue)

    Parameters

    rawValue
  • Owners of the chat bot.

    Declaration

    Swift

    public static let owner = Privileges(rawValue: 1 << 0)
  • The names of these privileges.

    Declaration

    Swift

    public var names: [String]
  • Registers a name for a privilege.

    Declaration

    Swift

    public static func add(name: String, for privilege: Privileges)
  • Returns the name of a privilege.

    Declaration

    Swift

    public static func name(of privilege: Privileges) -> String
  • Undocumented

    Declaration

    Swift

    public struct Privileges: OptionSet