integrations.discord.functions module

integrations/discord/functions.py

class integrations.discord.functions.SvcFunctions

Bases: FunctionsInterface

discord専用関数

__init__(api, conf)
Parameters:
Return type:

None

conf

個別設定

async delete_reaction(m)

botが付けたリアクションをすべて削除する

Parameters:

m (MessageParserProtocol) – メッセージデータ

Return type:

None

get_conversations(m)

スレッド情報の取得

Parameters:

m (MessageParserProtocol) – メッセージデータ

Returns:

API response

Return type:

dict

async is_deleted_message(message)

メッセージが削除済みか調べる

Parameters:

message (Message) – discordオブジェクト

Returns:

真偽

Return type:

bool

post_processing(m)

後処理(非同期処理ラッパー)

Parameters:

m (MessageParserProtocol) – メッセージデータ

Return type:

None

async update_reaction(m)

後処理

Parameters:

m (MessageParserProtocol) – メッセージデータ

Return type:

None