Skip to content

Commit 63e2afe

Browse files
committed
Revert "fix: fix check issues"
This reverts commit 9beb9f9.
1 parent 9beb9f9 commit 63e2afe

32 files changed

+1328
-1451
lines changed

docs/extensions/bridge/index.mdx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Let's say that you want to make a command that is both a Slash Command and a Pre
1919

2020
This is where the `ext.bridge` module comes in. It allows you to use one callback to make both a Slash Command and a Prefixed Command.
2121

22+
2223
### Example Usage
2324

2425
```python
@@ -44,7 +45,6 @@ bot.run("TOKEN")
4445
hello
4546
</DiscordInteraction>
4647
</div>
47-
4848
Hello!
4949
</DiscordMessage>
5050

@@ -58,7 +58,6 @@ bot.run("TOKEN")
5858
!hello
5959
</DiscordInteraction>
6060
</div>
61-
6261
Hello!
6362
</DiscordMessage>
6463
</DiscordComponent>
@@ -102,7 +101,6 @@ The cog will automatically split the Bridge Command into their Slash Command and
102101
hello
103102
</DiscordInteraction>
104103
</div>
105-
106104
Hello!
107105
</DiscordMessage>
108106

@@ -116,7 +114,6 @@ The cog will automatically split the Bridge Command into their Slash Command and
116114
!hello
117115
</DiscordInteraction>
118116
</div>
119-
120117
Hello!
121118
</DiscordMessage>
122119

@@ -126,7 +123,6 @@ The cog will automatically split the Bridge Command into their Slash Command and
126123
bye
127124
</DiscordInteraction>
128125
</div>
129-
130126
Bye!
131127
</DiscordMessage>
132128

@@ -140,7 +136,6 @@ The cog will automatically split the Bridge Command into their Slash Command and
140136
!bye
141137
</DiscordInteraction>
142138
</div>
143-
144139
Bye!
145140
</DiscordMessage>
146141
</DiscordComponent>
@@ -149,6 +144,8 @@ The cog will automatically split the Bridge Command into their Slash Command and
149144

150145
You can defer if you want to communicate to the user that your bot is busy processing the command. This is done by using `ctx.defer()`. For the Slash Command implementation, `ctx.defer()` calls the function that gives out a "Bot is thinking" message. For the Prefixed Command implementation, `ctx.defer()` enables the typing indicator.
151146

147+
<!-- TODO: Add example images of deferring at work -->
148+
152149
### Options
153150

154151
Options are pretty straightforward. You just specify them like you do with prefixed commands, and you're all set!
@@ -176,7 +173,6 @@ bot.run("TOKEN")
176173
sum
177174
</DiscordInteraction>
178175
</div>
179-
180176
4
181177
</DiscordMessage>
182178

@@ -190,7 +186,6 @@ bot.run("TOKEN")
190186
!sum 2 2
191187
</DiscordInteraction>
192188
</div>
193-
194189
4
195190
</DiscordMessage>
196191
</DiscordComponent>
Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
---
2-
title: Command Groups
3-
---
4-
1+
---
2+
title: Command Groups
3+
---
4+
55
Command groups are a way to create subcommands for your commands. For example, `!afk set` or `!afk
6-
remove`.
7-
8-
## Syntax
9-
10-
Creating a command group is very simple.
11-
12-
```python title="Command Groups Example"
6+
remove`.
7+
8+
## Syntax
9+
10+
Creating a command group is very simple.
11+
12+
```python title="Command Groups Example"
1313
import discord
1414
from discord.ext import commands
1515

@@ -39,16 +39,18 @@ async def add(ctx, a: int, b: int):
3939

4040
@math.command()
4141
async def subtract(ctx, a: int, b: int):
42-
...
43-
```
44-
42+
...
43+
```
44+
4545
To create a command group, the command's decorator must be `@bot.group`. Once you have a command with
4646
that decorator, you can use `@function.command()`, such as `@math.command()`. Now, you have subcommand
47-
groups!
48-
49-
:::info Related Topics
50-
51-
* [Prefixed Commands](./prefixed-commands.mdx)
52-
* [Cogs](../../popular-topics/cogs)
53-
54-
:::
47+
groups!
48+
49+
<!-- Waiting for slash command groups in Pycord -->
50+
51+
:::info Related Topics
52+
53+
- [Prefixed Commands](./prefixed-commands.mdx)
54+
- [Cogs](../../popular-topics/cogs)
55+
56+
:::

0 commit comments

Comments
 (0)