Skip to content

Commit d11ec96

Browse files
committed
readme eng
1 parent c813c63 commit d11ec96

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
# Disc.NET
22

3-
**Disc.NET** é um projeto experimental para a construção de uma biblioteca de interação com a API do Discord, utilizando .NET 8+. O objetivo é criar uma alternativa modular, focada em performance e facilidade de uso através de padrões modernos de desenvolvimento.
3+
**Disc.NET** is an experimental project focused on building a .NET 8+ library for interacting with the Discord API. The goal is to provide a modular alternative with strong performance and a modern developer experience.
44

5-
O projeto ainda está em **fase ativa de desenvolvimento** e explora arquiteturas desacopladas para lidar com a complexidade da Gateway e das interações do Discord.
5+
The project is still in **active development** and explores decoupled architectures to handle the complexity of the Discord Gateway and interactions.
66

77
---
88

9-
## Como o projeto funciona?
9+
## How does the project work?
1010

11-
A arquitetura do Disc.NET gira em torno de três pilares principais:
11+
The Disc.NET architecture is built around three main pillars:
1212

1313
### Event Dispatcher & Handlers
14-
O coração do sistema é o `EventDispatcher`. Ele recebe os payloads brutos da Gateway e os roteia para **Handlers** específicos.
15-
- Cada Handler é responsável por um tipo de evento (ex: `InteractionCreate`, `MessageCreate`).
16-
- Isso permite que a lógica de processamento seja isolada e fácil de estender sem sujar o código principal da conexão.
14+
The core of the system is the `EventDispatcher`. It receives raw Gateway payloads and routes them to specific **Handlers**.
15+
- Each Handler is responsible for a specific event type, such as `InteractionCreate` or `MessageCreate`.
16+
- This keeps processing logic isolated and makes the system easier to extend without cluttering the main connection flow.
1717

18-
### Comandos via Attributes
19-
Chega de `if/else` gigantes para validar comandos. O Disc.NET utiliza **Attributes** para mapear classes de comando automaticamente:
20-
- Basta decorar sua classe com `[SlashCommand]` ou `[PrefixCommand]`.
21-
- O sistema de registro faz o *scan* das classes e vincula a execução ao trigger correto via Reflection.
18+
### Commands via Attributes
19+
Instead of large `if/else` blocks to validate commands, Disc.NET uses **Attributes** to map command classes automatically:
20+
- Decorate your class with `[SlashCommand]` or `[PrefixCommand]`.
21+
- The registration system scans the classes and binds execution to the correct trigger through Reflection.
2222

2323
### Service Container (DI)
24-
Utilizamos um `DiscNetContainer` interno para gerenciar dependências. Isso garante que seus comandos tenham acesso fácil a serviços de configuração, clientes de API e bancos de dados de forma nativa.
24+
Disc.NET includes an internal `DiscNetContainer` to manage dependencies. This gives commands native access to configuration services, API clients, and databases.
2525

2626
---
2727

28-
## Instalação via NuGet
28+
## Installation via NuGet
2929

30-
Instale o pacote principal:
30+
Install the main package:
3131

3232
```bash
3333
dotnet add package Disc.NET
3434
```
3535

36-
Se precisar instalar os módulos separadamente:
36+
If you need to install the modules separately:
3737

3838
```bash
3939
dotnet add package Disc.NET.Client.SDK
@@ -42,11 +42,11 @@ dotnet add package Disc.NET.Commands
4242

4343
---
4444

45-
## Exemplo de Uso (Experimental)
45+
## Usage Example (Experimental)
4646

4747
```csharp
48-
// 1. Defina o comando usando atributos
49-
[SlashCommand("ping", InteractionType.ApplicationCommand, "Testa a latência")]
48+
// 1. Define the command using attributes
49+
[SlashCommand("ping", InteractionType.ApplicationCommand, "Checks latency")]
5050
public class PingCommand : ISlashCommand
5151
{
5252
public async Task RunAsync(InteractionContext context, CancellationToken ct = default)
@@ -58,22 +58,22 @@ public class PingCommand : ISlashCommand
5858
}
5959
}
6060

61-
// 2. Inicialize o AppBuilder
61+
// 2. Initialize AppBuilder
6262
var app = new AppBuilder()
6363
.AddConfiguration(new AppConfiguration("TOKEN") { ApplicationId = 123 })
6464
.Build();
6565

6666
await app.RunAsync();
6767
```
6868

69-
### Exemplo com Message Builders
69+
### Example with Message Builders
7070

7171
```csharp
7272
using Disc.NET.Client.SDK.Messages.Components.Buttons;
7373
using Disc.NET.Commands;
7474
using Disc.NET.Commands.MessageBuilders;
7575

76-
[SlashCommand("ping", InteractionType.ApplicationCommand, "Testa a latência")]
76+
[SlashCommand("ping", InteractionType.ApplicationCommand, "Checks latency")]
7777
public class PingCommand : ISlashCommand
7878
{
7979
public async Task RunAsync(InteractionContext context, CancellationToken ct = default)
@@ -82,13 +82,13 @@ public class PingCommand : ISlashCommand
8282
.WithContent("Hello World!")
8383
.WithEmbed(embed => embed
8484
.SetTitle("Pong!")
85-
.SetDescription("Exemplo de mensagem usando builders.")
85+
.SetDescription("Example message built with builders.")
8686
.SetColor(0x5865F2)
8787
.AddField("Status", "Online", true))
8888
.WithActionRow(
8989
new ActionRowBuilder()
90-
.AddButton("Atualizar", "ping_refresh", ButtonStyle.Primary)
91-
.AddLinkButton("Repositório", "https://github.com/dridev/Disc.NET"))
90+
.AddButton("Refresh", "ping_refresh", ButtonStyle.Primary)
91+
.AddLinkButton("Repository", "https://github.com/dridev/Disc.NET"))
9292
.Build();
9393

9494
await context.Response.SendMessageAsync(message, ct);
@@ -98,12 +98,12 @@ public class PingCommand : ISlashCommand
9898

9999
---
100100

101-
## 📦 Módulos Atuais
102-
- **Disc.NET.Client.SDK**: Abstração da API REST.
103-
- **Disc.NET.Commands**: Motor de execução de comandos e contextos.
104-
- **Disc.NET.Shared**: Utilitários de serialização e extensões de sistema.
105-
- **Disc.NET.Components**: Builders para botões, selects e embeds.
101+
## Current Modules
102+
- **Disc.NET.Client.SDK**: Discord REST API abstraction.
103+
- **Disc.NET.Commands**: Command execution engine and contexts.
104+
- **Disc.NET.Shared**: Serialization utilities and system extensions.
105+
- **Disc.NET.Components**: Builders for buttons, selects, and embeds.
106106

107107
---
108108

109-
> ⚠️ **Aviso:** Por ser um projeto experimental, mudanças drásticas na API podem ocorrer a qualquer momento.
109+
> Warning: Since this is an experimental project, breaking API changes may happen at any time.

0 commit comments

Comments
 (0)