Class RawGatewayEvent

    • Constructor Detail

      • RawGatewayEvent

        public RawGatewayEvent​(@Nonnull
                               JDA api,
                               long responseNumber,
                               @Nonnull
                               DataObject data)
    • Method Detail

      • getPackage

        @Nonnull
        public DataObject getPackage()
        The raw gateway package including sequence and type.
        • d: The payload of the package (DataObject)
        • t: The type of the package (String)
        • op: The opcode of the package, always 0 for dispatch (int)
        • s: The sequence number, equivalent to Event.getResponseNumber() (long)
        Returns:
        The data object
      • getPayload

        @Nonnull
        public DataObject getPayload()
        The payload of the package.
        Returns:
        The payload as a DataObject instance
      • getType

        @Nonnull
        public java.lang.String getType()
        The type of event.
        Returns:
        The type of event.