Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/guides/advanced/http-interactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To handle HTTP interactions, you need to use @NetCord.Hosting.Rest.RestClientSer

To make your bot receive interactions, you need to store the public key in the configuration and specify the endpoint URL in the [Discord Developer Portal](https://discord.com/developers/applications).

![](../../images/httpInteractions_FindingPublicKeyAndSpecifyingInteractionEndpointUrl.png)
![Shows 'Public Key' section in 'General Information' section](../../images/httpInteractions_FindingPublicKeyAndSpecifyingInteractionEndpointUrl.png)

### Specifying Public Key in Configuration

Expand Down
2 changes: 1 addition & 1 deletion Documentation/guides/events/intents.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Intents allow you to subscribe Discord events, such as @NetCord.Gateway.GatewayC

## Privileged intents
Privileged intents are intents that you need to enable in [Discord Developer Portal](https://discord.com/developers/applications).
![](../../images/intents_Privileged.png)
![Shows 'Privileged Gateway Intents' section in 'Bot' section](../../images/intents_Privileged.png)

## How to specify intents in NetCord?

Expand Down
12 changes: 8 additions & 4 deletions Documentation/guides/getting-started/coding.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
> This section assumes that you have a project with NetCord installed and you have a bot created. If not, go back!

Before we start, you need a token of your bot... so you need to go to the [Discord Developer Portal](https://discord.com/developers/applications) and get it.
![](../../images/coding_Token_1.png)
![](../../images/coding_Token_2.png)

- Go to `Bot` section and click `Reset Token`.
![Go to 'Bot' section and click 'Reset Token'](../../images/coding_Token_1.png)

- Then click `Copy` to copy the token to the clipboard.
![Click 'Copy' to copy the token to the clipboard](../../images/coding_Token_2.png)

> [!IMPORTANT]
> You should never give your token to anybody.
Expand All @@ -19,7 +23,7 @@ Also note that the token needs to be stored in the configuration. You can for ex
[!code-json[appsettings.json](CodingHosting/appsettings.json)]

Now, when you run the code, your bot should be online!
![](../../images/coding_BotOnline.png)
![Bot being online](../../images/coding_BotOnline.png)

## [Bare Bones](#tab/bare-bones)

Expand All @@ -33,7 +37,7 @@ Now it's time to finally... make the bot online! To do it, add the following lin
[!code-cs[Program.cs](Coding/Program.cs#L12-L13)]

Now, when you run the code, your bot should be online!
![](../../images/coding_BotOnline.png)
![Bot being online](../../images/coding_BotOnline.png)

### The Final Product
[!code-cs[Program.cs](Coding/Program.cs)]
14 changes: 10 additions & 4 deletions Documentation/guides/getting-started/creating-a-first-bot.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Creating a First Bot!

1. Go to [Discord Developer Portal](https://discord.com/developers/applications).

2. Create an app.
![](../../images/creatingFirstBot_CreateApplication_1.png)
![](../../images/creatingFirstBot_CreateApplication_2.png)
- Click `New Application`.
![Click 'New Application'](../../images/creatingFirstBot_CreateApplication_1.png)
- Fill the name and check the checkbox and click `Create`.
![Fill the name and check the checkbox and click 'Create'](../../images/creatingFirstBot_CreateApplication_2.png)

3. Add the bot to a server. Copy a link, and then paste the link to a browser and add the bot!
![](../../images/creatingFirstBot_AddBotToServer.png)
![](../../images/creatingFirstBot_AddBotToServer_2.png)
- Go to `OAuth2 > URL Generator`, select `bot` scope and click `Copy` to copy the bot invite link.
![Click 'OAuth2 > URL Generator', select 'bot' scope and click 'Copy' to copy the bot invite link](../../images/creatingFirstBot_AddBotToServer.png)
- Paste the link to a browser, select the server to add the bot and click `Authorize`.
![Paste the link to a browser, select the server to add the bot and click 'Authorize'](../../images/creatingFirstBot_AddBotToServer_2.png)
8 changes: 4 additions & 4 deletions Documentation/guides/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@

2. Click `Manage NuGet Packages`.

![](../../images/installation_VisualStudio_1.png)
![Click 'Manage NuGet Packages'](../../images/installation_VisualStudio_1.png)

3. Browse and install `NetCord` package.

> [!NOTE]
> The `Include prerelease` checkbox must be checked to see the package.

![](../../images/installation_VisualStudio_2.png)
![Browse and install 'NetCord' package](../../images/installation_VisualStudio_2.png)

## [JetBrains Rider](#tab/rider)

1. Create a new project.

2. Click `Manage NuGet Packages`.

![](../../images/installation_JetBrainsRider_1.png)
![Click 'Manage NuGet Packages'](../../images/installation_JetBrainsRider_1.png)

3. Browse and install `NetCord` package.

> [!NOTE]
> The `Prerelease` checkbox must be checked to see the package.

![](../../images/installation_JetBrainsRider_2.png)
![Browse and install 'NetCord' package](../../images/installation_JetBrainsRider_2.png)

## [Other](#tab/other)

Expand Down