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+
}

docs/extensions/commands/groups.mdx

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+
:::

docs/extensions/commands/help-command.mdx

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

15-
import DiscordComponent from "../../../src/components/DiscordComponent";
15+
import DiscordComponent from "@site/src/components/DiscordComponent";
1616

1717
import Tabs from "@theme/Tabs";
1818
import TabItem from "@theme/TabItem";

docs/extensions/commands/prefixed-commands.mdx

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

15-
import DiscordComponent from "../../../src/components/DiscordComponent";
15+
import DiscordComponent from "@site/src/components/DiscordComponent";
1616

1717
import Tabs from "@theme/Tabs";
1818
import TabItem from "@theme/TabItem";

docs/extensions/pages/_category_.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{
2-
"label": "Pages",
3-
"link": {
4-
"type": "generated-index"
5-
}
6-
}
1+
{
2+
"label": "Pages",
3+
"link": {
4+
"type": "generated-index"
5+
}
6+
}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
---
2-
title: Paginator FAQ
3-
---
4-
5-
# Paginator FAQ
6-
7-
- **What's the difference between `Paginator.send()` and `Paginator.respond()`?**
8-
- `Paginator.send()` is used to send a channel message (DMChannel or TextChannel) with the paginator.
9-
- `Paginator.respond()` is used to send an interaction response (or followup) message with the paginator.
10-
11-
- **How can the bot send a paginator to a different destination than where it was invoked?**
12-
- Use the `target` parameter in `Paginator.send()` or `Paginator.respond()`.
13-
- You can also set the `target_message` parameter to control what's shown as a response where the paginator was originally invoked.
14-
- For `Paginator.respond()`, this parameter is required if `target` is set, as an interaction requires being responded to.
15-
- **How can I change the paginator's behavior without re-creating and re-sending it?**
16-
- Use the `Paginator.update()` method.
17-
- **How can I make the bot actually do something with the contents of a page?**
18-
- Use the (upcoming) `Paginator.page_action()` method. <!-- This refers to an upcoming `ext.pages` feature that has not yet been released. -->
1+
---
2+
title: Paginator FAQ
3+
---
4+
5+
# Paginator FAQ
6+
7+
- **What's the difference between `Paginator.send()` and `Paginator.respond()`?**
8+
- `Paginator.send()` is used to send a channel message (DMChannel or TextChannel) with the paginator.
9+
- `Paginator.respond()` is used to send an interaction response (or followup) message with the paginator.
10+
11+
- **How can the bot send a paginator to a different destination than where it was invoked?**
12+
- Use the `target` parameter in `Paginator.send()` or `Paginator.respond()`.
13+
- You can also set the `target_message` parameter to control what's shown as a response where the paginator was originally invoked.
14+
- For `Paginator.respond()`, this parameter is required if `target` is set, as an interaction requires being responded to.
15+
- **How can I change the paginator's behavior without re-creating and re-sending it?**
16+
- Use the `Paginator.update()` method.
17+
- **How can I make the bot actually do something with the contents of a page?**
18+
- Use the (upcoming) `Paginator.page_action()` method.

docs/extensions/tasks/_category_.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{
2-
"label": "Tasks"
3-
}
1+
{
2+
"label": "Tasks"
3+
}

docs/getting-started/_category_.json

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

docs/getting-started/creating-your-first-bot.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: Creating Your First Bot
33
---
44

55
import {
6-
DiscordButton,
7-
DiscordButtons,
8-
DiscordInteraction,
9-
DiscordMessage,
10-
DiscordMessages,
6+
DiscordButton,
7+
DiscordButtons,
8+
DiscordInteraction,
9+
DiscordMessage,
10+
DiscordMessages,
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
Excited to create your first bot? Once you [install Pycord](../installation.mdx), you can start right
1717
away!
@@ -259,6 +259,6 @@ To learn more, read about Message Commands in our [interactions directory](../in
259259

260260
:::info Related Topics
261261

262-
- [Prefixed Commands](../../extensions/commands/prefixed-commands)
262+
- [Prefixed Commands](../extensions/commands/prefixed-commands)
263263

264264
:::

0 commit comments

Comments
 (0)