mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-24 23:29:40 +00:00
🎨 角色卡片插件 get_player_cards
函数添加 @error_callable
修饰器
This commit is contained in:
parent
b35dc25e79
commit
340741543a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user