mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-15 06:14:25 +08:00
4 lines
3.4 KiB
JavaScript
4 lines
3.4 KiB
JavaScript
import{_ as e,o as n,c as t,e as a}from"./app-Dq2hGnN2.js";const s={},l=a(`<h3 id="class-rule" tabindex="-1"><a class="header-anchor" href="#class-rule"><span><em><strong>class</strong></em> <code>Rule</code></span></a></h3><h3 id="def-init-self-handler-optional-rulehandler-none" tabindex="-1"><a class="header-anchor" href="#def-init-self-handler-optional-rulehandler-none"><span> <em><strong>def</strong></em> <code>__init__(self, handler: Optional[RuleHandler]) -> None</code></span></a></h3><p> </p><details><summary>源代码</summary><div class="language-python line-numbers-mode" data-ext="py" data-title="py"><pre class="language-python"><code><span class="token keyword">def</span> <span class="token function">__init__</span><span class="token punctuation">(</span>self<span class="token punctuation">,</span> handler<span class="token punctuation">:</span> Optional<span class="token punctuation">[</span>RuleHandler<span class="token punctuation">]</span><span class="token operator">=</span><span class="token boolean">None</span><span class="token punctuation">)</span><span class="token punctuation">:</span>
|
||
self<span class="token punctuation">.</span>handler <span class="token operator">=</span> handler
|
||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div></details>`,4),o=[l];function i(r,p){return n(),t("div",null,o)}const d=e(s,[["render",i],["__file","rule.html.vue"]]),u=JSON.parse('{"path":"/en/dev/api/message/rule.html","title":"liteyuki.message.rule","lang":"en-US","frontmatter":{"title":"liteyuki.message.rule","order":1,"icon":"laptop-code","category":"API","description":"class Rule def __init__(self, handler: Optional[RuleHandler]) -> None 源代码","head":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/message/rule.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/message/rule.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot"}],["meta",{"property":"og:title","content":"liteyuki.message.rule"}],["meta",{"property":"og:description","content":"class Rule def __init__(self, handler: Optional[RuleHandler]) -> None 源代码"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-08-21T09:59:21.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-21T09:59:21.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.message.rule\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-21T09:59:21.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class Rule","slug":"class-rule","link":"#class-rule","children":[]},{"level":3,"title":"def __init__(self, handler: Optional[RuleHandler]) -> None","slug":"def-init-self-handler-optional-rulehandler-none","link":"#def-init-self-handler-optional-rulehandler-none","children":[]}],"git":{"createdTime":1724234361000,"updatedTime":1724234361000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":1}]},"readingTime":{"minutes":0.12,"words":37},"filePathRelative":"en/dev/api/message/rule.md","localizedDate":"August 21, 2024","autoDesc":true}');export{d as comp,u as data};
|