DisCatSharp.Analyzer 1.0.0

Prefix Reserved
dotnet add package DisCatSharp.Analyzer --version 1.0.0
                    
NuGet\Install-Package DisCatSharp.Analyzer -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DisCatSharp.Analyzer" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DisCatSharp.Analyzer" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DisCatSharp.Analyzer">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DisCatSharp.Analyzer --version 1.0.0
                    
#r "nuget: DisCatSharp.Analyzer, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DisCatSharp.Analyzer&version=1.0.0
                    
Install DisCatSharp.Analyzer as a Cake Addin
#tool nuget:?package=DisCatSharp.Analyzer&version=1.0.0
                    
Install DisCatSharp.Analyzer as a Cake Tool

Build Documentation CodeQL FOSSA Status

GitHub last commit GitHub commit activity GitHub pull requests GitHub code size in bytes

Stable Nightly


DisCatSharp

A Discord App Library written in C# for .NET


News

New

  • Full support for Components V2
  • Stability Improvements
  • Build-in Statistics
  • Support for .NET 10
  • Improvements for OAuth2 operations

Breaking

  • DiscordAttachment: Renamed MediaType to ContentType to align with Discord's API.
  • DiscordTextComponent: Switched the position of customId and label because of nullability.
  • Application Commands: Removed dmPermission fields, causing DisCatSharp to do weird bulk-updates. Use allowedContexts instead.
  • LavalinkGuildPlayer: RemoveQueue renamed to RemoveFromQueue.
  • Url fields: Any Url fields on objects like DiscordAttachment, DiscordEmbed, etc., are now of type DiscordUri instead of string. Use .ToUri() to get a Uri object or use .ToString().
  • We updated some namespaces in DisCatSharp.Interactivity. You might need to update your imports for some entities and enums.

About

Why DisCatSharp?

If you:

  • want a library where you get kind and efficient help
  • would like to have and use the most recent features of the Discord API
  • are ready to build great things

Then this is the right place for you!

What Happened With The History

We've squashed the history of DisCatSharp due to it's clone size and cluttered history. The original history can be seen in the releases / tags and at https://github.com/Aiko-IT-Systems/DisCatSharp.Backup (Archived version before the squash).

Installing

You can install the library from the following sources:

Documentation

The documentation is available at docs.dcs.aitsys.dev.

Alternative hosts for our docs are:

Bugs or Feature requests?

Either join our official support guild at https://discord.gg/2HWta4GXus, open an issue or write us an email at bugs@aitsys.dev.

Tutorials / Examples

Visual Studio Tools


NuGet Packages

Main

Package Stable Nightly
DisCatSharp NuGet NuGet
DisCatSharp.ApplicationCommands NuGet NuGet
DisCatSharp.CommandsNext NuGet NuGet
DisCatSharp.Interactivity NuGet NuGet

Voice

Package Stable Nightly
DisCatSharp.Lavalink NuGet NuGet
DisCatSharp.VoiceNext NuGet NuGet
DisCatSharp.VoiceNext.Natives NuGet NuGet

Hosting

Package Stable Nightly
DisCatSharp.Configuration NuGet NuGet
DisCatSharp.Hosting NuGet NuGet
DisCatSharp.Hosting.DependencyInjection NuGet NuGet

Templates

Package Stable Nightly
DisCatSharp.ProjectTemplates NuGet NuGet

Development / Commons

Package Stable Nightly
DisCatSharp.Attributes NuGet NuGet
DisCatSharp.Common NuGet NuGet
DisCatSharp.Analyzer NuGet NuGet

Extensions

Package Stable Nightly
DisCatSharp.Extensions.TwoFactorCommands NuGet NuGet
DisCatSharp.Extensions.OAuth2Web NuGet NuGet
DisCatSharp.Extensions.SimpleMusicCommands NuGet NuGet

Sponsors (Current & Past)

Thanks

Big thanks goes to the following people who helped us without being part of the core team ♥️

Special Thanks

The special thanks goes to Nagisa. Make sure to check out her Instagram ♥️♥️

The second special thanks goes to Sentry (GitHub) for sponsering us a business account on sentry for error tracking. You guys are the best 💕⭐

Open Source License Status

FOSSA Status

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
1.0.0 440 4/3/2025

DisCatSharp Release Notes

- Full support for Components V2
- Stability Improvements
- Build-in Statistics
- Support for .NET 10
- Improvements for OAuth2 operations

   Breaking

   - **DiscordAttachment**: Renamed `MediaType` to `ContentType` to align with Discord's API.
   - **DiscordTextComponent**: Switched the position of `customId` and `label` because of nullability.
   - **Application Commands**: Removed `dmPermission` fields, causing DisCatSharp to do weird bulk-updates. Use `allowedContexts` instead.
   - **LavalinkGuildPlayer**: `RemoveQueue` renamed to [`RemoveFromQueue`]((xref:DisCatSharp.Lavalink.Entities.LavalinkGuildPlayer.RemoveFromQueue*)).
   - **Url fields**: Any `Url` fields on objects like `DiscordAttachment`, `DiscordEmbed`, etc., are now of type [`DiscordUri`](xref:DisCatSharp.Entities.DiscordUri) instead of `string`. Use `.ToUri()` to get a `Uri` object or use `.ToString()`.
   - We updated some namespaces in DisCatSharp.Interactivity. You might need to update your imports for some entities and enums.


DisCatSharp.Attributes Release Notes

   - None


DisCatSharp.ApplicationCommands Release Notes

   - Some optimizations


DisCatSharp.CommandsNext Release Notes

   - None

DisCatSharp.Interactivity Release Notes

   - None

DisCatSharp.Common Release Notes

   - None


DisCatSharp.Lavalink Release Notes

   - New queue system. See https://docs.dcs.aitsys.dev/articles/modules/audio/lavalink_v4/queue
   - Support for LavaLyrics plugin


DisCatSharp.VoiceNext Release Notes

   - Will be deprecated 2025 and replaced by DisCatSharp.Voice


DisCatSharp.Experimental Release Notes

   - GCP Attachments
   - Guild Member Search powered by elasticsearch


DisCatSharp.Configuration Release Notes

   - None


DisCatSharp.Hosting Release Notes

   - None


DisCatSharp.Hosting.DependencyInjection Release Notes

   - None