Discord.Net.Extensions
1.0.0
dotnet add package Discord.Net.Extensions --version 1.0.0
NuGet\Install-Package Discord.Net.Extensions -Version 1.0.0
<PackageReference Include="Discord.Net.Extensions" Version="1.0.0" />
<PackageVersion Include="Discord.Net.Extensions" Version="1.0.0" />
<PackageReference Include="Discord.Net.Extensions" />
paket add Discord.Net.Extensions --version 1.0.0
#r "nuget: Discord.Net.Extensions, 1.0.0"
#:package Discord.Net.Extensions@1.0.0
#addin nuget:?package=Discord.Net.Extensions&version=1.0.0
#tool nuget:?package=Discord.Net.Extensions&version=1.0.0
Discord.Net.Extensions
This package introduces a number of features that assist Discord.Net as a library. It attempts to make work for the developer easier, by introducing extensions that perfectly support development needs
Practices
The naming of this package follows that of Discord.Net:
using Discord;
using Discord.Extensions;
Because the package is seperate, and not a part of the library itself, it levels down a single name on the namespace. It does still follow the naming of Discord.Net itself however:
using Discord.Interactions;
using Discord.Extensions.Interactions;
Depending on the namespace of the type you're looking to target, its extensions will be in the matching Extensions namespace.
Features
Interactions
Generic Context Generation
For each type of Interaction a method has been introduced to automatically generate generic IInteractionContext,
supporting the use-case of XInteractionContext<XInteraction>
Type converters for commands, modals & components.
TypeReaders
ColorTimeSpan*GuidIEmote**
TypeConverters
ColorTimeSpan*UInt64***IEmote**
ComponentTypeConverters
ColorTimeSpan*IEmote**
* The
TimeSpanconverters run through a reader far more advanced than a simpleTryParse. It supports formatting such as: 1d16h10m up to 10 weeks, 4 months & 7 seconds. Parsing does not respect order, and works in any format.
** The
IEmoteconverters supportEmojiandEmote. Both can be parsed from this parser. However, the parameter implementation will have to beIEmoteas well, regardless of the underlying type.
*** The
UInt64(ulong) converter is introduced because theInt64(number) parameter from discord does not support unsigned positive characters up to the height of Discord snowflake ID's.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Discord.Net.Interactions (>= 3.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|
Release 1.0, Supporting Discord.Net 3.6.1+