validator
CertainFriend 🔗
Bases: Certain
需要消息发送者/事件触发者是指定好友
Source code in src/graia/ariadne/util/validator.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
__init__ 🔗
__init__(friend: SequenceOrInstance[Union[Friend, int]])
Parameters:
Source code in src/graia/ariadne/util/validator.py
61 62 63 64 65 66 67 |
|
CertainGroup 🔗
Bases: Certain
需要消息发送/事件触发在指定群组
Source code in src/graia/ariadne/util/validator.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
__init__ 🔗
__init__(group: SequenceOrInstance[Union[Group, int]])
Parameters:
Source code in src/graia/ariadne/util/validator.py
44 45 46 47 48 49 50 |
|
CertainMember 🔗
Bases: Certain
需要发送者/事件触发者是指定群员
Source code in src/graia/ariadne/util/validator.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
__init__ 🔗
__init__(
member: SequenceOrInstance[Union[Member, int]],
group: Optional[SequenceOrInstance[Union[Member, int]]] = None,
)
Parameters:
-
member
(
SequenceOrInstance[Union[Member, int]]
) –成员或成员QQ号的列表/对象
-
group
(
SequenceOrInstance[Union[Group, int]]
) –如果提供, 则要求群员在传入的群内
Source code in src/graia/ariadne/util/validator.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
Quoting 🔗
Bases: Decorator
需要回复指定的消息
Source code in src/graia/ariadne/util/validator.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
__init__ 🔗
__init__(message: SequenceOrInstance[Union[int, ActiveMessage, Source]])
Parameters:
-
message
(
SequenceOrInstance[Union[int, ActiveMessage, Source]]
) –要回复的指定信息
Source code in src/graia/ariadne/util/validator.py
107 108 109 110 111 112 113 114 115 116 117 118 119 |
|