Skip to content

Commit

Permalink
fix: minimal fix for cloudflare build (we need to rebuild the guide a…
Browse files Browse the repository at this point in the history
…t some point)
  • Loading branch information
Lulalaby committed Oct 24, 2024
1 parent 49841e0 commit 902deb1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 90 deletions.
42 changes: 6 additions & 36 deletions docs/extensions/commands/help-command.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,15 @@ There are two types of built-in help commands:
<DiscordMessage profile="robocord">
<code>
No Category:

<br />

<div style={{ paddingLeft: "2em" }}>
!help Shows this message

<br />

!ping
</div>

<br />

Type !help command for more info on a command.

<br />

You can also type !help category for more info on a category.
</code>
</DiscordMessage>
Expand All @@ -122,24 +114,13 @@ There are two types of built-in help commands:
</DiscordMessage>

<DiscordMessage profile="robocord">
Use <code>!help \[command]</code> for more info on a command.

Use <code>!help &#91;command&#93;</code> for more info on a command.
<br />

You can also use <code>!help \[category]</code> for more info on a category.

You can also use <code>!help &#91;category&#93;</code> for more info on a category.
<br />

<br />

<strong>
{" "}

<u>No Category</u>{" "}
</strong>

<strong><u>No Category</u></strong>
<br />

help ping
</DiscordMessage>
</DiscordComponent>
Expand Down Expand Up @@ -184,25 +165,14 @@ Finally, we set this as our new help command using `bot.help_command = MyNewHelp
<DiscordComponent>
<DiscordMessage profile="robocord">
<DiscordEmbed>
Use <code>!help \[command]</code> for more info on a command.

Use <code>!help &#91;command&#93;</code> for more info on a command.
<br />

You can also use <code>!help \[category]</code> for more info on a
You can also use <code>!help &#91;category&#93;</code> for more info on a
category.

<br />

<br />

<strong>
{" "}

<u>No Category</u>{" "}
</strong>

<strong><u>No Category</u></strong>
<br />

help ping
</DiscordEmbed>
</DiscordMessage>
Expand Down
37 changes: 0 additions & 37 deletions docs/extensions/commands/prefixed-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,59 +119,40 @@ various advantages, such as:
<DiscordMessage profile="bob">
!ping
</DiscordMessage>

<DiscordMessage profile="robocord">
Pong!
</DiscordMessage>

<DiscordMessage profile="bob">
!announce Hello Hello World!
</DiscordMessage>

<DiscordMessage profile="robocord">
<strong>Hello</strong>

<br />

Hello World!
</DiscordMessage>

<DiscordMessage profile="bob">
!pycord
</DiscordMessage>

<DiscordMessage profile="robocord">
Unknown command.
</DiscordMessage>

<DiscordMessage profile="bob">
!help
</DiscordMessage>

<DiscordMessage profile="robocord">
<code>
No Category:

<br />

<div style={{ paddingLeft: "2em" }}>
!help Shows this message

<br />

!ping

<br />

!announce
</div>

<br />

Type !help command for more info on a command.

<br />

You can also type !help category for more info on a category.
</code>
</DiscordMessage>
Expand Down Expand Up @@ -226,35 +207,24 @@ bot.run("token") # Run the bot with your token.
<DiscordMessage profile="bob">
!ping
</DiscordMessage>

<DiscordMessage profile="robocord">
Pong!
</DiscordMessage>

<DiscordMessage profile="bob">
!help
</DiscordMessage>

<DiscordMessage profile="robocord">
<code>
No Category:

<br />

<div style={{ paddingLeft: "2em" }}>
!help Shows this message

<br />

!ping
</div>

<br />

Type !help command for more info on a command.

<br />

You can also type !help category for more info on a category.
</code>
</DiscordMessage>
Expand Down Expand Up @@ -314,24 +284,17 @@ Greetings!" Greetings to you all!`.
<DiscordMessage author="Santa Claus" avatar="blue">
!echo #general Holiday Greetings! Greetings to you all!
</DiscordMessage>

<DiscordMessage author="Elf" avatar="red" bot>
<strong>Holiday</strong>

<br />

Greetings! Greetings to you all!
</DiscordMessage>

<DiscordMessage author="Mrs. Claus" avatar="green">
!echo #general "Holiday Greetings!" Greetings to you all!
</DiscordMessage>

<DiscordMessage author="Elf" avatar="red" bot>
<strong>Holiday Greetings!</strong>

<br />

Greetings to you all!
</DiscordMessage>
</DiscordComponent>
Expand Down
1 change: 0 additions & 1 deletion docs/getting-started/creating-your-first-bot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ bot.run(os.getenv('TOKEN')) # run the bot with the token
hello
</DiscordInteraction>
</div>

Hey!
</DiscordMessage>
</DiscordComponent>
Expand Down
16 changes: 0 additions & 16 deletions docs/getting-started/more-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,29 +80,23 @@ enabling your bot to lay out messages with a lot of text into neat fields.
<DiscordMessage author="Guide Bot" avatar="red" bot>
<DiscordEmbed embedTitle="Pycord Guide" url="https://guide.pycord.dev" authorIcon="/img/logo.png" authorName="Pycord Team" authorUrl="https://github.com/Pycord-Development/guide" thumbnail="/img/logo.png" borderColor="#5865F2" timestamp="01/09/2021" footerIcon="/img/logo.png" image="/img/banner-v3.png">
The Pycord Guide is a detailed guide that explains how to use Pycord and all of its features.

<DiscordEmbedFields slot="fields">
<DiscordEmbedField fieldTitle="Getting Started">
The <a href="/category/getting-started">Getting Started section</a> explains how you can get a brand new bot created and running from scratch.
</DiscordEmbedField>

<DiscordEmbedField fieldTitle="Interactions" inline="true">
<a href="/interactions">Interactions</a> with Pycord
</DiscordEmbedField>

<DiscordEmbedField fieldTitle="Extensions" inline="true">
Pycord's various <a href="/category/extensions">Extensions</a>
</DiscordEmbedField>

<DiscordEmbedField fieldTitle="Popular Topics" inline="true">
<a href="/category/popular-topics">Other Popular Topics</a>
</DiscordEmbedField>

<DiscordEmbedField fieldTitle="And More!">
We have so much more! Just explore, and you will find everything you need. If you want another page added, open an issue on the <a href="https://github.com/Pycord-Development/guide">GitHub</a>.
</DiscordEmbedField>
</DiscordEmbedFields>

<span slot="footer">Created with 💖 by the Pycord Team & Contributors</span>
</DiscordEmbed>
</DiscordMessage>
Expand Down Expand Up @@ -145,22 +139,17 @@ bot.run("TOKEN")
<div slot="interactions">
<DiscordInteraction author="Guide Man" avatar="green" command>hello</DiscordInteraction>
</div>

Hello! Here's a cool embed.

<DiscordEmbed embedTitle="My Amazing Embed" authorIcon="/img/logo.png" authorName="Pycord Team" authorUrl="https://github.com/Pycord-Development/guide" thumbnail="/img/logo.png" borderColor="#5865F2" footerIcon="/img/logo.png" image="/img/banner-v3.png">
Embeds are super easy, barely an inconvenience.

<DiscordEmbedFields slot="fields">
<DiscordEmbedField fieldTitle="A Normal Field">
A really nice field with some information. <strong>The description as well as the fields support markdown!</strong>
</DiscordEmbedField>

<DiscordEmbedField fieldTitle="Inline Field 1" inline="true">Inline Field 1</DiscordEmbedField>
<DiscordEmbedField fieldTitle="Inline Field 2" inline="true">Inline Field 2</DiscordEmbedField>
<DiscordEmbedField fieldTitle="Inline Field 3" inline="true">Inline Field 3</DiscordEmbedField>
</DiscordEmbedFields>

<span slot="footer">Footer! No markdown here.</span>
</DiscordEmbed>
</DiscordMessage>
Expand Down Expand Up @@ -343,31 +332,26 @@ and keep in mind that embed title and filed names will always show in **bold**.
<td>No</td>
<td>No</td>
</tr>

<tr>
<td>Embed Title</td>
<td>Yes</td>
<td>No</td>
</tr>

<tr>
<td>Embed Description</td>
<td>Yes</td>
<td>Yes</td>
</tr>

<tr>
<td>Field Name</td>
<td>Yes</td>
<td>No</td>
</tr>

<tr>
<td>Field Value</td>
<td>Yes</td>
<td>Yes</td>
</tr>

<tr>
<td>Embed Footer</td>
<td>No</td>
Expand Down

0 comments on commit 902deb1

Please sign in to comment.