Type alias ReacordInstance

ReacordInstance: { deactivate: (() => void); destroy: (() => void); render: ((content: ReactNode) => void) }

Represents an interactive message, which can later be replaced or deleted.

Type declaration

  • deactivate: (() => void)
      • (): void
      • Same as destroy, but keeps the message and disables the components on it. This prevents it from listening to user interactions.

        Returns void

  • destroy: (() => void)
      • (): void
      • Remove this message

        Returns void

  • render: ((content: ReactNode) => void)
      • (content: ReactNode): void
      • Render some JSX to this instance (edits the message)

        Parameters

        • content: ReactNode

        Returns void

Generated using TypeDoc