DiscordGatewayPayloadData

public enum DiscordGatewayPayloadData : Encodable

Holds a gateway payload, based on its type.

  • Outgoing payloads only, payload is a custom encodable type

    Declaration

    Swift

    case customEncodable(Encodable)
  • Payload is a json object.

    Declaration

    Swift

    case object([String: Any])
  • Payload is an integer.

    Declaration

    Swift

    case integer(Int)
  • The payload is a bool

    Declaration

    Swift

    case bool(Bool)
  • Payload is null.

    Declaration

    Swift

    case null
  • Encodable implementation.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws