@@ -5,7 +5,8 @@ title: Questions about Legacy Versions | |||||
# Legacy Questions | # Legacy Questions | ||||
## X, Y, Z does not work! It doesn't return a valid value anymore. | |||||
## X, Y, Z does not work! It doesn't return a valid value anymore | |||||
If you're currently using an older version in stable branch, please | If you're currently using an older version in stable branch, please | ||||
upgrade to the latest pre-release version to ensure maximum | upgrade to the latest pre-release version to ensure maximum | ||||
compatibility. Several features may be broken in older | compatibility. Several features may be broken in older | ||||
@@ -17,6 +18,7 @@ Visit the repo's [release tag] to see the latest public pre-release. | |||||
[release tag]: https://github.com/RogueException/Discord.Net/releases | [release tag]: https://github.com/RogueException/Discord.Net/releases | ||||
## I came from an earlier version of Discord.NET 1.0, and DependencyMap doesn't seem to exist anymore in the later revision? What happened to it? | ## I came from an earlier version of Discord.NET 1.0, and DependencyMap doesn't seem to exist anymore in the later revision? What happened to it? | ||||
The `DependencyMap` has been replaced with Microsoft's | The `DependencyMap` has been replaced with Microsoft's | ||||
[DependencyInjection] Abstractions. An example usage can be seen | [DependencyInjection] Abstractions. An example usage can be seen | ||||
[here](https://github.com/foxbot/DiscordBotBase/blob/csharp/src/DiscordBot/Program.cs#L36). | [here](https://github.com/foxbot/DiscordBotBase/blob/csharp/src/DiscordBot/Program.cs#L36). | ||||
@@ -7,8 +7,8 @@ title: Working with Events | |||||
Events in Discord.Net are consumed in a similar manner to the standard | Events in Discord.Net are consumed in a similar manner to the standard | ||||
convention, with the exception that every event must be of the type | convention, with the exception that every event must be of the type | ||||
`System.Threading.Tasks.Task` and instead of using `EventArgs`, the | |||||
event's parameters are passed directly into the handler. | |||||
@System.Threading.Tasks.Task and instead of using @System.EventArgs, | |||||
the event's parameters are passed directly into the handler. | |||||
This allows for events to be handled in an async context directly | This allows for events to be handled in an async context directly | ||||
instead of relying on `async void`. | instead of relying on `async void`. | ||||
@@ -33,7 +33,7 @@ to a logging function to write their own messages. | |||||
## Usage in Commands | ## Usage in Commands | ||||
Discord.Net's [CommandService] also provides a @Discord.Commands.CommandService.Log | |||||
Discord.Net's [CommandService] also provides a @Discord.Commands.CommandService.Log | |||||
event, identical in signature to other log events. | event, identical in signature to other log events. | ||||
Data logged through this event is typically coupled with a | Data logged through this event is typically coupled with a | ||||
@@ -65,7 +65,7 @@ Not sure how to add a direct feed? See how [with Visual Studio] or | |||||
1. Create a new solution for your bot. | 1. Create a new solution for your bot. | ||||
2. Open the NuGet window (Tools > NuGet > Manage NuGet packages for | 2. Open the NuGet window (Tools > NuGet > Manage NuGet packages for | ||||
Solution). | |||||
Solution). | |||||
 |  | ||||
3. In the "Packages" tab, search for `Discord.Net`. | 3. In the "Packages" tab, search for `Discord.Net`. | ||||
 |  | ||||
@@ -102,7 +102,7 @@ Solution). | |||||
In order to compile Discord.Net, you require the following: | In order to compile Discord.Net, you require the following: | ||||
### Using Visual Studio | |||||
## Using Visual Studio | |||||
- [Visual Studio 2017](https://www.visualstudio.com/) | - [Visual Studio 2017](https://www.visualstudio.com/) | ||||
- [.NET Core SDK] | - [.NET Core SDK] | ||||
@@ -110,7 +110,7 @@ In order to compile Discord.Net, you require the following: | |||||
The .NET Core and Docker (Preview) workload is required during Visual | The .NET Core and Docker (Preview) workload is required during Visual | ||||
Studio installation. | Studio installation. | ||||
### Using Command Line | |||||
## Using Command Line | |||||
- [.NET Core SDK] | - [.NET Core SDK] | ||||