mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-06 04:10:02 +08:00
bugfix:修复插件商店插件卸载问题,显示问题,移除权限检查多余部分 (#2124)
* bugfix:修复插件商店插件卸载问题,显示问题,移除权限检查多余部分 * bugfix:修复撤回问题,插件商店显示问题
This commit is contained in:
@@ -3,9 +3,21 @@ class IsSuperuserException(Exception):
|
||||
|
||||
|
||||
class SkipPluginException(Exception):
|
||||
def __init__(self, info: str, *args: object) -> None:
|
||||
def __init__(
|
||||
self,
|
||||
info: str,
|
||||
*args: object,
|
||||
tip_message: list | str | None = None,
|
||||
tip_check_tag: str | None = None,
|
||||
tip_background: bool = False,
|
||||
tip_timeout: float | None = None,
|
||||
) -> None:
|
||||
super().__init__(*args)
|
||||
self.info = info
|
||||
self.tip_message = tip_message
|
||||
self.tip_check_tag = tip_check_tag
|
||||
self.tip_background = tip_background
|
||||
self.tip_timeout = tip_timeout
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.info
|
||||
|
||||
Reference in New Issue
Block a user