🎨 角色卡片插件 get_player_cards 函数添加 @error_callable 修饰器

This commit is contained in:
洛水居室 2022-09-14 22:20:14 +08:00
parent b35dc25e79
commit 340741543a
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -128,6 +128,7 @@ class PlayerCards(Plugin, BasePlugin):
@handler(CallbackQueryHandler, pattern=r"^get_player_card\|", block=False)
@restricts(restricts_time_of_groups=20, without_overlapping=True)
@error_callable
async def get_player_cards(self, update: Update, _: CallbackContext) -> None:
callback_query = update.callback_query
user = callback_query.from_user