Skip to content

Commit

Permalink
deploy: ea082eb
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Nov 13, 2024
1 parent 7ab4905 commit 75db22d
Show file tree
Hide file tree
Showing 22 changed files with 216 additions and 44 deletions.
4 changes: 3 additions & 1 deletion next/poise/macros/attr.command.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This macro transforms plain functions into poise bot commands."><title>command in poise::macros - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="poise" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0-nightly (f7273e004 2024-11-12)" data-channel="nightly" data-search-js="search-853ef39b.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../poise/index.html">poise</a><span class="version">0.6.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">command</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#macro-arguments" title="Macro arguments">Macro arguments</a><ul><li><a href="#command-types" title="Command types">Command types</a></li><li><a href="#meta-properties" title="Meta properties">Meta properties</a></li><li><a href="#checks" title="Checks">Checks</a></li><li><a href="#help-related-arguments" title="Help-related arguments">Help-related arguments</a></li><li><a href="#edit-tracking-prefix-only" title="Edit tracking (prefix only)">Edit tracking (prefix only)</a></li><li><a href="#cooldown" title="Cooldown">Cooldown</a></li><li><a href="#other" title="Other">Other</a></li></ul></li><li><a href="#function-parameters" title="Function parameters">Function parameters</a><ul><li><a href="#meta-properties-1" title="Meta properties">Meta properties</a></li><li><a href="#input-filter-slash-only" title="Input filter (slash only)">Input filter (slash only)</a></li><li><a href="#parser-settings-prefix-only" title="Parser settings (prefix only)">Parser settings (prefix only)</a></li></ul></li><li><a href="#help-text" title="Help text">Help text</a></li><li><a href="#internals" title="Internals">Internals</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In poise::<wbr>macros</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">poise</a>::<wbr><a href="index.html">macros</a></span><h1>Attribute Macro <span class="attr">command</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/poise_macros/lib.rs.html#186">Source</a> </span></div><pre class="rust item-decl"><code>#[command]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This macro transforms plain functions into poise bot commands.</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This macro transforms plain functions into poise bot commands."><title>command in poise::macros - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="poise" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0-nightly (f7273e004 2024-11-12)" data-channel="nightly" data-search-js="search-853ef39b.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../poise/index.html">poise</a><span class="version">0.6.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">command</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#macro-arguments" title="Macro arguments">Macro arguments</a><ul><li><a href="#command-types" title="Command types">Command types</a></li><li><a href="#meta-properties" title="Meta properties">Meta properties</a></li><li><a href="#checks" title="Checks">Checks</a></li><li><a href="#help-related-arguments" title="Help-related arguments">Help-related arguments</a></li><li><a href="#edit-tracking-prefix-only" title="Edit tracking (prefix only)">Edit tracking (prefix only)</a></li><li><a href="#cooldown" title="Cooldown">Cooldown</a></li><li><a href="#other" title="Other">Other</a></li></ul></li><li><a href="#function-parameters" title="Function parameters">Function parameters</a><ul><li><a href="#meta-properties-1" title="Meta properties">Meta properties</a></li><li><a href="#input-filter-slash-only" title="Input filter (slash only)">Input filter (slash only)</a></li><li><a href="#parser-settings-prefix-only" title="Parser settings (prefix only)">Parser settings (prefix only)</a></li></ul></li><li><a href="#help-text" title="Help text">Help text</a></li><li><a href="#internals" title="Internals">Internals</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In poise::<wbr>macros</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">poise</a>::<wbr><a href="index.html">macros</a></span><h1>Attribute Macro <span class="attr">command</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/poise_macros/lib.rs.html#188">Source</a> </span></div><pre class="rust item-decl"><code>#[command]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This macro transforms plain functions into poise bot commands.</p>
<p>Documentation comments are used as help text. The first line is a single-line description,
displayed in listings of your bot’s commands (i.e. <code>~help</code>). Following paragraphs are detailed explanations,
for example for command-specific help (i.e. <code>~help command_name</code>). Escape newlines with <code>\</code></p>
Expand All @@ -24,6 +24,8 @@ <h3 id="meta-properties"><a class="doc-anchor" href="#meta-properties">§</a>Met
<li><code>category</code>: Category of this command which affects placement in the help command</li>
<li><code>custom_data</code>: Arbitrary expression that will be boxed and stored in <code>Command::custom_data</code></li>
<li><code>identifying_name</code>: Optionally, a unique identifier for this command for your personal usage</li>
<li><code>install_context</code>: Installation contexts where this command is available (slash-only)</li>
<li><code>interaction_context</code>: Interaction contexts where this command is available (slash-only)</li>
</ul>
<h3 id="checks"><a class="doc-anchor" href="#checks">§</a>Checks</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion next/poise/macros/derive.ChoiceParameter.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Use this derive macro on an enum to easily generate a choice parameter type. A choice parameter is mainly useful in slash commands. It allows you to constrain input to a fixed set of choices."><title>ChoiceParameter in poise::macros - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="poise" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0-nightly (f7273e004 2024-11-12)" data-channel="nightly" data-search-js="search-853ef39b.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc derive"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../poise/index.html">poise</a><span class="version">0.6.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Choice<wbr>Parameter</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#localization" title="Localization">Localization</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In poise::<wbr>macros</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">poise</a>::<wbr><a href="index.html">macros</a></span><h1>Derive Macro <span class="derive">ChoiceParameter</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/poise_macros/lib.rs.html#251">Source</a> </span></div><pre class="rust item-decl"><code>#[derive(ChoiceParameter)]
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Use this derive macro on an enum to easily generate a choice parameter type. A choice parameter is mainly useful in slash commands. It allows you to constrain input to a fixed set of choices."><title>ChoiceParameter in poise::macros - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="poise" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0-nightly (f7273e004 2024-11-12)" data-channel="nightly" data-search-js="search-853ef39b.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc derive"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../poise/index.html">poise</a><span class="version">0.6.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Choice<wbr>Parameter</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#localization" title="Localization">Localization</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In poise::<wbr>macros</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">poise</a>::<wbr><a href="index.html">macros</a></span><h1>Derive Macro <span class="derive">ChoiceParameter</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/poise_macros/lib.rs.html#253">Source</a> </span></div><pre class="rust item-decl"><code>#[derive(ChoiceParameter)]
{
<span class="comment">// Attributes available to this derive:</span>
#[name]
Expand Down
Loading

0 comments on commit 75db22d

Please sign in to comment.