4141using Microsoft . CodeAnalysis . Scripting ;
4242using Microsoft . Extensions . DependencyInjection ;
4343
44+ #pragma warning disable CA1822 // Mark members as static
45+
4446namespace DSharpPlusDocs . Modules
4547{
4648 public class GeneralCommands : BaseCommandModule
4749 {
4850 [ Command ( "clean" ) ]
4951 [ Description ( "Delete all the messages from this bot within the last X messages" ) ]
50- public static async Task CleanAsync ( CommandContext ctx , int messages = 30 )
52+ public async Task CleanAsync ( CommandContext ctx , int messages = 30 )
5153 {
5254 if ( messages > 50 )
5355 {
@@ -68,16 +70,16 @@ public static async Task CleanAsync(CommandContext ctx, int messages = 30)
6870
6971 [ Command ( "docs" ) ]
7072 [ Description ( "Show the docs url" ) ]
71- public static async Task DocsAsync ( CommandContext ctx ) => await ctx . RespondAsync ( $ "Docs: { QueryHandler . DocsBaseUrl } ") ;
73+ public async Task DocsAsync ( CommandContext ctx ) => await ctx . RespondAsync ( $ "Docs: { QueryHandler . DocsBaseUrl } ") ;
7274
7375 [ Command ( "invite" ) ]
7476 [ Description ( "Show the invite url" ) ]
75- public static async Task InviteAsync ( CommandContext ctx ) => await ctx . RespondAsync ( "Invite: https://discordapp.com/oauth2/authorize?client_id=341606460720939008&scope=bot" ) ;
77+ public async Task InviteAsync ( CommandContext ctx ) => await ctx . RespondAsync ( "Invite: https://discordapp.com/oauth2/authorize?client_id=341606460720939008&scope=bot" ) ;
7678
7779 [ Command ( "guides" ) ]
7880 [ Aliases ( "guide" ) ]
7981 [ Description ( "Show the url of a guide" ) ]
80- public static async Task GuidesAsync ( CommandContext ctx , [ RemainingText ] string guide = null )
82+ public async Task GuidesAsync ( CommandContext ctx , [ RemainingText ] string guide = null )
8183 {
8284 try
8385 {
@@ -202,7 +204,7 @@ public static async Task GuidesAsync(CommandContext ctx, [RemainingText] string
202204
203205 [ Command ( "info" ) ]
204206 [ Description ( "Show some information about the application" ) ]
205- public static async Task InfoAsync ( CommandContext ctx )
207+ public async Task InfoAsync ( CommandContext ctx )
206208 {
207209 _ = ctx . Client . CurrentApplication ;
208210 MainHandler mainHandler = ctx . Services . GetService < MainHandler > ( ) ;
@@ -244,7 +246,7 @@ public static async Task InfoAsync(CommandContext ctx)
244246
245247 [ Command ( "eval" ) ] //TODO: Safe eval ? 👀
246248 [ RequireOwner ]
247- public static async Task EvalAsync ( CommandContext ctx , [ RemainingText ] string code )
249+ public async Task EvalAsync ( CommandContext ctx , [ RemainingText ] string code )
248250 {
249251 /*using (Context.Channel.EnterTypingState())
250252 {*/
@@ -278,7 +280,7 @@ public static async Task EvalAsync(CommandContext ctx, [RemainingText] string co
278280
279281 [ Command ( "setdocsurl" ) ]
280282 [ RequireOwner ]
281- public static async Task SetDocsUrlAsync ( CommandContext ctx , [ RemainingText ] string url )
283+ public async Task SetDocsUrlAsync ( CommandContext ctx , [ RemainingText ] string url )
282284 {
283285 if ( ! url . EndsWith ( "/" ) )
284286 {
0 commit comments