integrations.slack.parser module

integrations/slack/parser.py

class integrations.slack.parser.MessageParser

Bases: MessageParserDataMixin, MessageParserInterface

メッセージ解析クラス

__init__()
Return type:

None

property check_updatable: bool

DB操作の許可チェック

Returns:

真偽値

  • True: 許可

  • False: 禁止

Return type:

bool

property ignore_user: bool

ignore_useridに存在するユーザかチェック

Returns:

真偽値

  • True: 存在する(操作禁止ユーザ)

  • False: 存在しない

Return type:

bool

property in_thread: bool

スレッド内のメッセージか判定

property is_bot: bool

botのポストかチェック

Returns:

真偽値

  • True: botのポスト

  • False: ユーザのポスト

Return type:

bool

parser(_body)

メッセージ解析

Parameters:
  • body (Any) – 解析データ

  • _body (dict[str, Any])

Return type:

None