Visual Studio Tools
This section contains information on how to use the Visual Studio tools for developing bots with DisCatSharp.
Analyzers & Code Fixes
DisCatSharp can be extended with a set of analyzers that can help you write better code. These analyzers will warn you about common mistakes and bad practices.
DisCatSharp Analyzer
Installation
To use the DisCatSharp Analyzer, you need to install the DisCatSharp.Analyzer.Roselyn NuGet package.
Visual Studio Code
Enable omnisharp.enableRoslynAnalyzers
in your settings.
JetBrains Rider
See https://www.jetbrains.com/help/rider/Settings_Roslyn_Analyzers.html
Included Rules
Rule ID | Category | Severity | Notes |
---|---|---|---|
DCS0001 | Usage | Warning | Experimental Attribute Analyzer |
DCS0002 | Usage | Warning | Deprecated Attribute Analyzer |
DCS0101 | Usage | Warning | DiscordInExperiment Attribute Analyzer |
DCS0102 | Usage | Warning | DiscordDeprecated Attribute Analyzer |
DCS0103 | Usage | Warning | DiscordUnreleased Attribute Analyzer |
DCS0200 | Usage | Info | RequiresFeature Attribute Analyzer |