-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: upgrade packages, add crowdin support, fix problems * fix: issues * [ci skip] bleh * Delete deploy.yml
- Loading branch information
Showing
600 changed files
with
68,259 additions
and
4,342 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
}; | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
plugins: [ | ||
[ | ||
'module-resolver', | ||
{ | ||
root: ['./'], | ||
alias: { | ||
'@components': './src/components', | ||
'@constants': './src/constants', | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
base_url: "https://pycord.crowdin.com" | ||
project_id_env: CROWDIN_PROJECT_ID | ||
api_token_env: CROWDIN_API_TOKEN | ||
|
||
preserve_hierarchy: true | ||
|
||
commit_message: "docs: Update translations" | ||
|
||
export_languages: ["de", "ja", "fr", "it", "hi", "ko", "pt-BR", "es-ES", "zh-CN", "ru"] | ||
|
||
files: | ||
- source: /i18n/en/**/* | ||
translation: /i18n/%two_letters_code%/**/%original_file_name% | ||
- source: /docs/**/* | ||
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name% | ||
- source: /src/pages/* | ||
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-pages%original_file_name% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"position": 5, | ||
"label": "Extensions", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} | ||
{ | ||
"position": 5, | ||
"label": "Extensions", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"label": "Bridge" | ||
} | ||
{ | ||
"label": "Bridge" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"label": "Commands", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} | ||
{ | ||
"label": "Commands", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
--- | ||
title: Command Groups | ||
--- | ||
|
||
Command groups are a way to create subcommands for your commands. For example, `!afk set` or `!afk | ||
remove`. | ||
|
||
## Syntax | ||
|
||
Creating a command group is very simple. | ||
|
||
```python title="Command Groups Example" | ||
import discord | ||
from discord.ext import commands | ||
|
||
bot = commands.Bot(command_prefix='!') | ||
|
||
@bot.group() | ||
async def afk(): | ||
pass | ||
|
||
@afk.command() | ||
async def set(): | ||
... | ||
|
||
@afk.command() | ||
async def remove(): | ||
... | ||
|
||
# Another command group | ||
|
||
@bot.group(invoke_without_command=True) # Indicates if the group callback should begin parsing and invocation only if no subcommand was found. | ||
async def math(ctx): | ||
await ctx.send('Subcommand not found') | ||
|
||
@math.command() | ||
async def add(ctx, a: int, b: int): | ||
... | ||
|
||
@math.command() | ||
async def subtract(ctx, a: int, b: int): | ||
... | ||
``` | ||
|
||
To create a command group, the command's decorator must be `@bot.group`. Once you have a command with | ||
that decorator, you can use `@function.command()`, such as `@math.command()`. Now, you have subcommand | ||
groups! | ||
|
||
<!-- Waiting for slash command groups in Pycord --> | ||
|
||
:::info Related Topics | ||
|
||
- [Prefixed Commands](./prefixed-commands.mdx) | ||
- [Cogs](../../popular-topics/cogs) | ||
|
||
::: | ||
--- | ||
title: Command Groups | ||
--- | ||
|
||
Command groups are a way to create subcommands for your commands. For example, `!afk set` or `!afk | ||
remove`. | ||
|
||
## Syntax | ||
|
||
Creating a command group is very simple. | ||
|
||
```python title="Command Groups Example" | ||
import discord | ||
from discord.ext import commands | ||
|
||
bot = commands.Bot(command_prefix='!') | ||
|
||
@bot.group() | ||
async def afk(): | ||
pass | ||
|
||
@afk.command() | ||
async def set(): | ||
... | ||
|
||
@afk.command() | ||
async def remove(): | ||
... | ||
|
||
# Another command group | ||
|
||
@bot.group(invoke_without_command=True) # Indicates if the group callback should begin parsing and invocation only if no subcommand was found. | ||
async def math(ctx): | ||
await ctx.send('Subcommand not found') | ||
|
||
@math.command() | ||
async def add(ctx, a: int, b: int): | ||
... | ||
|
||
@math.command() | ||
async def subtract(ctx, a: int, b: int): | ||
... | ||
``` | ||
|
||
To create a command group, the command's decorator must be `@bot.group`. Once you have a command with | ||
that decorator, you can use `@function.command()`, such as `@math.command()`. Now, you have subcommand | ||
groups! | ||
|
||
<!-- Waiting for slash command groups in Pycord --> | ||
|
||
:::info Related Topics | ||
|
||
- [Prefixed Commands](./prefixed-commands.mdx) | ||
- [Cogs](../../popular-topics/cogs) | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"label": "Pages", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} | ||
{ | ||
"label": "Pages", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- | ||
title: Paginator FAQ | ||
--- | ||
|
||
# Paginator FAQ | ||
|
||
- **What's the difference between `Paginator.send()` and `Paginator.respond()`?** | ||
- `Paginator.send()` is used to send a channel message (DMChannel or TextChannel) with the paginator. | ||
- `Paginator.respond()` is used to send an interaction response (or followup) message with the paginator. | ||
|
||
- **How can the bot send a paginator to a different destination than where it was invoked?** | ||
- Use the `target` parameter in `Paginator.send()` or `Paginator.respond()`. | ||
- You can also set the `target_message` parameter to control what's shown as a response where the paginator was originally invoked. | ||
- For `Paginator.respond()`, this parameter is required if `target` is set, as an interaction requires being responded to. | ||
- **How can I change the paginator's behavior without re-creating and re-sending it?** | ||
- Use the `Paginator.update()` method. | ||
- **How can I make the bot actually do something with the contents of a page?** | ||
- Use the (upcoming) `Paginator.page_action()` method. <!-- This refers to an upcoming `ext.pages` feature that has not yet been released. --> | ||
--- | ||
title: Paginator FAQ | ||
--- | ||
|
||
# Paginator FAQ | ||
|
||
- **What's the difference between `Paginator.send()` and `Paginator.respond()`?** | ||
- `Paginator.send()` is used to send a channel message (DMChannel or TextChannel) with the paginator. | ||
- `Paginator.respond()` is used to send an interaction response (or followup) message with the paginator. | ||
|
||
- **How can the bot send a paginator to a different destination than where it was invoked?** | ||
- Use the `target` parameter in `Paginator.send()` or `Paginator.respond()`. | ||
- You can also set the `target_message` parameter to control what's shown as a response where the paginator was originally invoked. | ||
- For `Paginator.respond()`, this parameter is required if `target` is set, as an interaction requires being responded to. | ||
- **How can I change the paginator's behavior without re-creating and re-sending it?** | ||
- Use the `Paginator.update()` method. | ||
- **How can I make the bot actually do something with the contents of a page?** | ||
- Use the (upcoming) `Paginator.page_action()` method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"label": "Tasks" | ||
} | ||
{ | ||
"label": "Tasks" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"position": 3, | ||
"label": "Getting Started", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} | ||
{ | ||
"position": 3, | ||
"label": "Getting Started", | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.