Skip to content

Commit

Permalink
automatic commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Docs Deployment Bot committed May 15, 2024
1 parent c84e35f commit 0ea9a5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions application-command-autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@
<div class="line"><span class="comment"> */</span></div>
<div class="line"> std::string uservalue = std::get&lt;std::string&gt;(opt.value);</div>
<div class="line"> bot.interaction_response_create(event.command.id, event.command.token, dpp::interaction_response(dpp::ir_autocomplete_reply)</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;squids&quot;</span>, <span class="stringliteral">&quot;lots of squids&quot;</span>))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;cats&quot;</span>, <span class="stringliteral">&quot;a few cats&quot;</span>))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;dogs&quot;</span>, <span class="stringliteral">&quot;bucket of dogs&quot;</span>))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;elephants&quot;</span>, <span class="stringliteral">&quot;bottle of elephants&quot;</span>))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;squids&quot;</span>, std::string(<span class="stringliteral">&quot;lots of squids&quot;</span>)))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;cats&quot;</span>, std::string(<span class="stringliteral">&quot;a few cats&quot;</span>)))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;dogs&quot;</span>, std::string(<span class="stringliteral">&quot;bucket of dogs&quot;</span>)))</div>
<div class="line"> .add_autocomplete_choice(dpp::command_option_choice(<span class="stringliteral">&quot;elephants&quot;</span>, std::string(<span class="stringliteral">&quot;bottle of elephants&quot;</span>)))</div>
<div class="line"> );</div>
<div class="line"> bot.log(dpp::ll_debug, <span class="stringliteral">&quot;Autocomplete &quot;</span> + opt.name + <span class="stringliteral">&quot; with value &#39;&quot;</span> + uservalue + <span class="stringliteral">&quot;&#39; in field &quot;</span> + event.name);</div>
<div class="line"> break;</div>
Expand Down
8 changes: 4 additions & 4 deletions xml/application-command-autocomplete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
<codeline><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::string<sp/>uservalue<sp/>=<sp/>std::get&lt;std::string&gt;(opt.value);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>bot.interaction_response_create(event.command.id,<sp/>event.command.token,<sp/>dpp::interaction_response(dpp::ir_autocomplete_reply)</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;squids&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;lots<sp/>of<sp/>squids&quot;</highlight><highlight class="normal">))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;cats&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;a<sp/>few<sp/>cats&quot;</highlight><highlight class="normal">))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;dogs&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;bucket<sp/>of<sp/>dogs&quot;</highlight><highlight class="normal">))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;elephants&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;bottle<sp/>of<sp/>elephants&quot;</highlight><highlight class="normal">))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;squids&quot;</highlight><highlight class="normal">,<sp/>std::string(</highlight><highlight class="stringliteral">&quot;lots<sp/>of<sp/>squids&quot;</highlight><highlight class="normal">)))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;cats&quot;</highlight><highlight class="normal">,<sp/>std::string(</highlight><highlight class="stringliteral">&quot;a<sp/>few<sp/>cats&quot;</highlight><highlight class="normal">)))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;dogs&quot;</highlight><highlight class="normal">,<sp/>std::string(</highlight><highlight class="stringliteral">&quot;bucket<sp/>of<sp/>dogs&quot;</highlight><highlight class="normal">)))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.add_autocomplete_choice(dpp::command_option_choice(</highlight><highlight class="stringliteral">&quot;elephants&quot;</highlight><highlight class="normal">,<sp/>std::string(</highlight><highlight class="stringliteral">&quot;bottle<sp/>of<sp/>elephants&quot;</highlight><highlight class="normal">)))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>bot.log(dpp::ll_debug,<sp/></highlight><highlight class="stringliteral">&quot;Autocomplete<sp/>&quot;</highlight><highlight class="normal"><sp/>+<sp/>opt.name<sp/>+<sp/></highlight><highlight class="stringliteral">&quot;<sp/>with<sp/>value<sp/>&apos;&quot;</highlight><highlight class="normal"><sp/>+<sp/>uservalue<sp/>+<sp/></highlight><highlight class="stringliteral">&quot;&apos;<sp/>in<sp/>field<sp/>&quot;</highlight><highlight class="normal"><sp/>+<sp/>event.name);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>break;</highlight></codeline>
Expand Down

0 comments on commit 0ea9a5c

Please sign in to comment.