@@ -2,7 +2,7 @@ | |||||
[](https://www.nuget.org/packages/Discord.Net) | [](https://www.nuget.org/packages/Discord.Net) | ||||
[](https://www.myget.org/feed/Packages/discord-net) | [](https://www.myget.org/feed/Packages/discord-net) | ||||
[](https://dev.azure.com/discord-net/Discord.Net/_build/latest?definitionId=1&branchName=dev) | [](https://dev.azure.com/discord-net/Discord.Net/_build/latest?definitionId=1&branchName=dev) | ||||
[](https://discord.gg/jkrBmQR) | |||||
[](https://discord.gg/jkrBmQR) | |||||
An unofficial .NET API Wrapper for the Discord client (http://discordapp.com). | An unofficial .NET API Wrapper for the Discord client (http://discordapp.com). | ||||
@@ -4,10 +4,10 @@ field, and 2 normal fields using an @Discord.EmbedBuilder: | |||||
```cs | ```cs | ||||
var exampleAuthor = new EmbedAuthorBuilder() | var exampleAuthor = new EmbedAuthorBuilder() | ||||
.WithName("I am a bot") | .WithName("I am a bot") | ||||
.WithIconUrl("https://discordapp.com/assets/e05ead6e6ebc08df9291738d0aa6986d.png"); | |||||
.WithIconUrl("https://discord.com/assets/e05ead6e6ebc08df9291738d0aa6986d.png"); | |||||
var exampleFooter = new EmbedFooterBuilder() | var exampleFooter = new EmbedFooterBuilder() | ||||
.WithText("I am a nice footer") | .WithText("I am a nice footer") | ||||
.WithIconUrl("https://discordapp.com/assets/28174a34e77bb5e5310ced9f95cb480b.png"); | |||||
.WithIconUrl("https://discord.com/assets/28174a34e77bb5e5310ced9f95cb480b.png"); | |||||
var exampleField = new EmbedFieldBuilder() | var exampleField = new EmbedFieldBuilder() | ||||
.WithName("Title of Another Field") | .WithName("Title of Another Field") | ||||
.WithValue("I am an [example](https://example.com).") | .WithValue("I am an [example](https://example.com).") | ||||
@@ -22,4 +22,4 @@ var embed = new EmbedBuilder() | |||||
.WithAuthor(exampleAuthor) | .WithAuthor(exampleAuthor) | ||||
.WithFooter(exampleFooter) | .WithFooter(exampleFooter) | ||||
.Build(); | .Build(); | ||||
``` | |||||
``` |
@@ -30,7 +30,7 @@ There are few possible reasons why this may occur. | |||||
[TokenType]: xref:Discord.TokenType | [TokenType]: xref:Discord.TokenType | ||||
[827]: https://github.com/RogueException/Discord.Net/issues/827 | [827]: https://github.com/RogueException/Discord.Net/issues/827 | ||||
[958]: https://github.com/RogueException/Discord.Net/issues/958 | [958]: https://github.com/RogueException/Discord.Net/issues/958 | ||||
[Discord API Terms of Service]: https://discordapp.com/developers/docs/legal | |||||
[Discord API Terms of Service]: https://discord.com/developers/docs/legal | |||||
## How do I do X, Y, Z when my bot connects/logs on? Why do I get a `NullReferenceException` upon calling any client methods after connect? | ## How do I do X, Y, Z when my bot connects/logs on? Why do I get a `NullReferenceException` upon calling any client methods after connect? | ||||
@@ -19,7 +19,7 @@ channels, and are often referred to as "servers". | |||||
* A **Channel** ([IChannel]) represents a generic channel. | * A **Channel** ([IChannel]) represents a generic channel. | ||||
- Example: #dotnet_discord-net | - Example: #dotnet_discord-net | ||||
- See [Channel Types](#channel-types) | - See [Channel Types](#channel-types) | ||||
[IGuild]: xref:Discord.IGuild | [IGuild]: xref:Discord.IGuild | ||||
[IChannel]: xref:Discord.IChannel | [IChannel]: xref:Discord.IChannel | ||||
@@ -79,4 +79,4 @@ activity for listening to a song on Spotify. | |||||
[RichGame]: xref:Discord.RichGame | [RichGame]: xref:Discord.RichGame | ||||
[StreamingGame]: xref:Discord.StreamingGame | [StreamingGame]: xref:Discord.StreamingGame | ||||
[SpotifyGame]: xref:Discord.SpotifyGame | [SpotifyGame]: xref:Discord.SpotifyGame | ||||
[Rich Presence Intro]: https://discordapp.com/developers/docs/rich-presence/best-practices | |||||
[Rich Presence Intro]: https://discord.com/developers/docs/rich-presence/best-practices |
@@ -31,7 +31,7 @@ the Discord Applications Portal first. | |||||
 |  | ||||
[Discord Applications Portal]: https://discordapp.com/developers/applications/ | |||||
[Discord Applications Portal]: https://discord.com/developers/applications/ | |||||
## Adding your bot to a server | ## Adding your bot to a server | ||||
@@ -165,11 +165,11 @@ or any other blocking method, such as reading from the console. | |||||
> the source code for your bot. | > the source code for your bot. | ||||
> | > | ||||
> In the following example, we retrieve the token from a pre-defined | > In the following example, we retrieve the token from a pre-defined | ||||
> variable, which is **NOT** secure, especially if you plan on | |||||
> variable, which is **NOT** secure, especially if you plan on | |||||
> distributing the application in any shape or form. | > distributing the application in any shape or form. | ||||
> | > | ||||
> We recommend alternative storage such as | |||||
> [Environment Variables], an external configuration file, or a | |||||
> We recommend alternative storage such as | |||||
> [Environment Variables], an external configuration file, or a | |||||
> secrets manager for safe-handling of secrets. | > secrets manager for safe-handling of secrets. | ||||
> | > | ||||
> [Environment Variables]: https://en.wikipedia.org/wiki/Environment_variable | > [Environment Variables]: https://en.wikipedia.org/wiki/Environment_variable | ||||
@@ -221,4 +221,4 @@ should be to separate... | |||||
2. the modules (handle commands) | 2. the modules (handle commands) | ||||
3. the services (persistent storage, pure functions, data manipulation) | 3. the services (persistent storage, pure functions, data manipulation) | ||||
[CommandService]: xref:Discord.Commands.CommandService | |||||
[CommandService]: xref:Discord.Commands.CommandService |
@@ -11,12 +11,12 @@ title: Home | |||||
[](https://www.nuget.org/packages/Discord.Net) | [](https://www.nuget.org/packages/Discord.Net) | ||||
[](https://www.myget.org/feed/Packages/discord-net) | [](https://www.myget.org/feed/Packages/discord-net) | ||||
[](https://dev.azure.com/discord-net/Discord.Net/_build/latest?definitionId=1&branchName=dev) | [](https://dev.azure.com/discord-net/Discord.Net/_build/latest?definitionId=1&branchName=dev) | ||||
[](https://discord.gg/jkrBmQR) | |||||
[](https://discord.gg/jkrBmQR) | |||||
## What is Discord.Net? | ## What is Discord.Net? | ||||
Discord.Net is an asynchronous, multi-platform .NET Library used to | Discord.Net is an asynchronous, multi-platform .NET Library used to | ||||
interface with the [Discord API](https://discordapp.com/). | |||||
interface with the [Discord API](https://discord.com/). | |||||
## Where to begin? | ## Where to begin? | ||||