OSRS Plugin API
    Preparing search index...

    Type Alias OnChatTransmitCallback

    OnChatTransmitCallback: (chat_table: any) => void

    The callback for Events.ON_CHAT_TRANSMIT events.

    Type Declaration

      • (chat_table: any): void
      • Parameters

        • chat_table: any

          An array of chat messages. Each chat message is a table with the following entries:

          • ["type"] - number : The chat line type.
            • 0: System alerts
            • 1: Chat
            • 114: NPC dialogue
            • 115: Gameplay descriptions
          • ["tick"] - number : the client tick that the message was received.
          • ["message"] - string: The message content.
          • ["sender"] - string : The display name, if a player. Otherwise, returns an empty string.

        Returns void