• 레퍼런스
  • 자습서
  • error 이벤트

    error 이벤트는 이벤트 핸들러에서 오류가 발생할 때 발생하는 이벤트입니다.

    구문

    iris.bot.Boton_event() 데코레이터를 이용해 이벤트에 대한 핸들러를 추가할 수 있습니다.

    from iris.bot.models import ErrorContext
     
    @bot.on_event("error")
    def on_error(err: ErrorContext):
      ...

    인자

    chatChatContext

    에러 이벤트에 대한 컨텍스트인 ErrorContext 객체입니다.