Browse Source

Change `Discord.NET` to `Discord.Net` for consistency

pull/826/head
Hsu Still 8 years ago
parent
commit
75d69be1e1
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      docs/guides/commands/commands.md
  2. +5
    -5
      docs/guides/getting_started/intro.md

+ 1
- 1
docs/guides/commands/commands.md View File

@@ -41,7 +41,7 @@ The first step to creating Commands is to create a _module_.
A Module is an organizational pattern that allows you to write your A Module is an organizational pattern that allows you to write your
Commands in different classes and have them automatically loaded. Commands in different classes and have them automatically loaded.


Discord.NET's implementation of Modules is influenced heavily from
Discord.Net's implementation of Modules is influenced heavily from
ASP.NET Core's Controller pattern. This means that the lifetime of a ASP.NET Core's Controller pattern. This means that the lifetime of a
module instance is only as long as the Command is being invoked. module instance is only as long as the Command is being invoked.




+ 5
- 5
docs/guides/getting_started/intro.md View File

@@ -56,12 +56,12 @@ through the OAuth2 flow.


## Connecting to Discord ## Connecting to Discord


If you have not already created a project and installed Discord.NET,
If you have not already created a project and installed Discord.Net,
do that now. (see the [Installing](installing.md) section) do that now. (see the [Installing](installing.md) section)


### Async ### Async


Discord.NET uses .NET's [Task-based Asynchronous Pattern (TAP)]
Discord.Net uses .NET's [Task-based Asynchronous Pattern (TAP)]
extensively - nearly every operation is asynchronous. extensively - nearly every operation is asynchronous.


It is highly recommended that these operations are awaited in a It is highly recommended that these operations are awaited in a
@@ -84,7 +84,7 @@ If your application throws any exceptions within an async context,
they will be thrown all the way back up to the first non-async method; they will be thrown all the way back up to the first non-async method;
since our first non-async method is the program's `Main` method, this since our first non-async method is the program's `Main` method, this
means that **all** unhandled exceptions will be thrown up there, which means that **all** unhandled exceptions will be thrown up there, which
will crash your application. Discord.NET will prevent exceptions in
will crash your application. Discord.Net will prevent exceptions in
event handlers from crashing your program, but any exceptions in your event handlers from crashing your program, but any exceptions in your
async main **will** cause the application to crash. async main **will** cause the application to crash.


@@ -93,7 +93,7 @@ async main **will** cause the application to crash.
### Creating a logging method ### Creating a logging method


Before we create and configure a Discord client, we will add a method Before we create and configure a Discord client, we will add a method
to handle Discord.NET's log events.
to handle Discord.Net's log events.


To allow agnostic support of as many log providers as possible, we To allow agnostic support of as many log providers as possible, we
log information through a `Log` event with a proprietary `LogMessage` log information through a `Log` event with a proprietary `LogMessage`
@@ -119,7 +119,7 @@ main, passing in a configuration object only if necessary. For most
users, the default will work fine. users, the default will work fine.


Before connecting, we should hook the client's `Log` event to the Before connecting, we should hook the client's `Log` event to the
log handler that was just created. Events in Discord.NET work
log handler that was just created. Events in Discord.Net work
similarly to other events in C#, so hook this event the way that similarly to other events in C#, so hook this event the way that
you typically would. you typically would.




Loading…
Cancel
Save