Skip to content

Commit 3942aef

Browse files
committed
Merge branch 'main' into production
2 parents 7296141 + 6a6ae8d commit 3942aef

File tree

600 files changed

+68439
-4375
lines changed

Some content is hidden

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

600 files changed

+68439
-4375
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/node.js.yml

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

1313
strategy:
1414
matrix:
15-
node-version: [18]
15+
node-version: [22.6.0]
1616
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1717

1818
steps:

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 22.6.0
2222
cache: yarn
2323

2424
- name: Install dependencies

babel.config.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3-
};
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
plugins: [
4+
[
5+
'module-resolver',
6+
{
7+
root: ['./'],
8+
alias: {
9+
'@components': './src/components',
10+
'@constants': './src/constants',
11+
},
12+
},
13+
],
14+
],
15+
};

crowdin.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
base_url: "https://pycord.crowdin.com"
2+
project_id_env: CROWDIN_PROJECT_ID
3+
api_token_env: CROWDIN_API_TOKEN
4+
5+
preserve_hierarchy: true
6+
7+
commit_message: "docs: Update translations"
8+
9+
export_languages: ["de", "ja", "fr", "it", "hi", "ko", "pt-BR", "es-ES", "zh-CN", "ru"]
10+
11+
files:
12+
- source: /i18n/en/**/*
13+
translation: /i18n/%two_letters_code%/**/%original_file_name%
14+
- source: /docs/**/*
15+
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
16+
- source: /src/pages/*
17+
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-pages%original_file_name%

docs/extensions/_category_.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{
2-
"position": 5,
3-
"label": "Extensions",
4-
"link": {
5-
"type": "generated-index"
6-
}
7-
}
1+
{
2+
"position": 5,
3+
"label": "Extensions",
4+
"link": {
5+
"type": "generated-index"
6+
}
7+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{
2-
"label": "Bridge"
3-
}
1+
{
2+
"label": "Bridge"
3+
}

docs/extensions/bridge/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "discord-message-components/packages/react";
1212
import "discord-message-components/packages/react/dist/style.css";
1313

14-
import DiscordComponent from "../../../src/components/DiscordComponent";
14+
import DiscordComponent from "@site/src/components/DiscordComponent";
1515

1616
## Concept
1717

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{
2-
"label": "Commands",
3-
"link": {
4-
"type": "generated-index"
5-
}
6-
}
1+
{
2+
"label": "Commands",
3+
"link": {
4+
"type": "generated-index"
5+
}
6+
}
Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
---
2-
title: Command Groups
3-
---
4-
5-
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"
13-
import discord
14-
from discord.ext import commands
15-
16-
bot = commands.Bot(command_prefix='!')
17-
18-
@bot.group()
19-
async def afk():
20-
pass
21-
22-
@afk.command()
23-
async def set():
24-
...
25-
26-
@afk.command()
27-
async def remove():
28-
...
29-
30-
# Another command group
31-
32-
@bot.group(invoke_without_command=True) # Indicates if the group callback should begin parsing and invocation only if no subcommand was found.
33-
async def math(ctx):
34-
await ctx.send('Subcommand not found')
35-
36-
@math.command()
37-
async def add(ctx, a: int, b: int):
38-
...
39-
40-
@math.command()
41-
async def subtract(ctx, a: int, b: int):
42-
...
43-
```
44-
45-
To create a command group, the command's decorator must be `@bot.group`. Once you have a command with
46-
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-
:::
1+
---
2+
title: Command Groups
3+
---
4+
5+
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"
13+
import discord
14+
from discord.ext import commands
15+
16+
bot = commands.Bot(command_prefix='!')
17+
18+
@bot.group()
19+
async def afk():
20+
pass
21+
22+
@afk.command()
23+
async def set():
24+
...
25+
26+
@afk.command()
27+
async def remove():
28+
...
29+
30+
# Another command group
31+
32+
@bot.group(invoke_without_command=True) # Indicates if the group callback should begin parsing and invocation only if no subcommand was found.
33+
async def math(ctx):
34+
await ctx.send('Subcommand not found')
35+
36+
@math.command()
37+
async def add(ctx, a: int, b: int):
38+
...
39+
40+
@math.command()
41+
async def subtract(ctx, a: int, b: int):
42+
...
43+
```
44+
45+
To create a command group, the command's decorator must be `@bot.group`. Once you have a command with
46+
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+
:::

0 commit comments

Comments
 (0)