Presence

public struct Presence

Structure for presences

  • Value type for statuses

    See more

    Declaration

    Swift

    public enum Status: String
  • The current game this user is playing/nil if not playing a game

    Declaration

    Swift

    public internal(set) var game: String?
  • The current status for this user

    Declaration

    Swift

    public internal(set) var status: Status
  • Creates a Presence structure

    Declaration

    Swift

    public init(status: Status = .online, playing game: String? = nil)