Skip to content

Commit d4c3468

Browse files
committed
Merge branch 'main' into production
2 parents 3942aef + 902deb1 commit d4c3468

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1570
-1493
lines changed

.github/workflows/codacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
4141
- name: Run Codacy Analysis CLI
42-
uses: codacy/codacy-analysis-cli-action@5cc54a75f9ad88159bb54046196d920e40e367a5
42+
uses: codacy/codacy-analysis-cli-action@v4.4.5
4343
with:
4444
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
4545
# You can also omit the token and run the tools that support default configurations

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
The official Guide for Pycord, explaining Pycord's features and how to use them.
44

5-
## NOTE
6-
Currently deployed from https://github.com/Aiko-IT-Systems/pycord-guide/
7-
85
## Purpose
96

107
The Guide is meant to serve as a professional guide to **all** of Pycord's features.

docs/extensions/bridge/index.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ 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-
2322
### Example Usage
2423

2524
```python
@@ -45,6 +44,7 @@ bot.run("TOKEN")
4544
hello
4645
</DiscordInteraction>
4746
</div>
47+
4848
Hello!
4949
</DiscordMessage>
5050

@@ -58,6 +58,7 @@ bot.run("TOKEN")
5858
!hello
5959
</DiscordInteraction>
6060
</div>
61+
6162
Hello!
6263
</DiscordMessage>
6364
</DiscordComponent>
@@ -101,6 +102,7 @@ The cog will automatically split the Bridge Command into their Slash Command and
101102
hello
102103
</DiscordInteraction>
103104
</div>
105+
104106
Hello!
105107
</DiscordMessage>
106108

@@ -114,6 +116,7 @@ The cog will automatically split the Bridge Command into their Slash Command and
114116
!hello
115117
</DiscordInteraction>
116118
</div>
119+
117120
Hello!
118121
</DiscordMessage>
119122

@@ -123,6 +126,7 @@ The cog will automatically split the Bridge Command into their Slash Command and
123126
bye
124127
</DiscordInteraction>
125128
</div>
129+
126130
Bye!
127131
</DiscordMessage>
128132

@@ -136,6 +140,7 @@ The cog will automatically split the Bridge Command into their Slash Command and
136140
!bye
137141
</DiscordInteraction>
138142
</div>
143+
139144
Bye!
140145
</DiscordMessage>
141146
</DiscordComponent>
@@ -144,8 +149,6 @@ The cog will automatically split the Bridge Command into their Slash Command and
144149

145150
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.
146151

147-
<!-- TODO: Add example images of deferring at work -->
148-
149152
### Options
150153

151154
Options are pretty straightforward. You just specify them like you do with prefixed commands, and you're all set!
@@ -173,6 +176,7 @@ bot.run("TOKEN")
173176
sum
174177
</DiscordInteraction>
175178
</div>
179+
176180
4
177181
</DiscordMessage>
178182

@@ -186,6 +190,7 @@ bot.run("TOKEN")
186190
!sum 2 2
187191
</DiscordInteraction>
188192
</div>
193+
189194
4
190195
</DiscordMessage>
191196
</DiscordComponent>

docs/extensions/commands/groups.mdx

Lines changed: 22 additions & 24 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,18 +39,16 @@ 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-
<!-- 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-
:::
47+
groups!
48+
49+
:::info Related Topics
50+
51+
* [Prefixed Commands](./prefixed-commands.mdx)
52+
* [Cogs](../../popular-topics/cogs)
53+
54+
:::

0 commit comments

Comments
 (0)