obby-client for TypeScript
    Preparing search index...

    Type Alias ModelChange

    ModelChange:
        | { key: MessageKey; target: string; type: "message_added" }
        | { channel: string; type: "channel_joined" }
        | { channel: string; type: "channel_parted" }
        | { channel: string; type: "channel_members_changed" }
        | { channel: string; type: "channel_topic_changed" }
        | { from: string; to: string; type: "nick_changed" }
        | { channel: string; type: "channel_modes_changed" }
        | { target: string; type: "read_marker_moved" }
        | { msgid: string; target: string; type: "message_reacted" }
        | { msgid: string; target: string; type: "message_redacted" }
        | { key: string; target: string; type: "metadata_changed" }
        | { nick: string; type: "whois_received" }
        | { from: string; to: string; type: "channel_renamed" }

    What changed, for a host that wants to react without diffing the whole model.

    Type Declaration

    • { key: MessageKey; target: string; type: "message_added" }
      • key: MessageKey

        Where it sits in that target's log.

      • target: string

        The channel or nick it belongs to, as the server spells it.

      • type: "message_added"
    • { channel: string; type: "channel_joined" }
      • channel: string

        The channel.

      • type: "channel_joined"
    • { channel: string; type: "channel_parted" }
      • channel: string

        The channel.

      • type: "channel_parted"
    • { channel: string; type: "channel_members_changed" }
      • channel: string

        The channel.

      • type: "channel_members_changed"
    • { channel: string; type: "channel_topic_changed" }
      • channel: string

        The channel.

      • type: "channel_topic_changed"
    • { from: string; to: string; type: "nick_changed" }
      • from: string

        What they were called.

      • to: string

        What they are called now.

      • type: "nick_changed"
    • { channel: string; type: "channel_modes_changed" }
      • channel: string

        The channel.

      • type: "channel_modes_changed"
    • { target: string; type: "read_marker_moved" }
      • target: string

        The channel or person.

      • type: "read_marker_moved"
    • { msgid: string; target: string; type: "message_reacted" }
      • msgid: string

        The message reacted to.

      • target: string

        Where the message is.

      • type: "message_reacted"
    • { msgid: string; target: string; type: "message_redacted" }
      • msgid: string

        The message deleted.

      • target: string

        Where the message was.

      • type: "message_redacted"
    • { key: string; target: string; type: "metadata_changed" }
      • key: string

        The key that changed.

      • target: string

        Whose metadata changed.

      • type: "metadata_changed"
    • { nick: string; type: "whois_received" }
      • nick: string

        Who it describes.

      • type: "whois_received"
    • { from: string; to: string; type: "channel_renamed" }
      • from: string

        What it was called.

      • to: string

        What it is called now.

      • type: "channel_renamed"