Fixed some text and added some missing texts to commands. Added new command to clear screen and formated code.

This commit is contained in:
2023-07-03 14:39:50 +03:00
parent 4a6a12baae
commit 298e557260
36 changed files with 1503 additions and 1542 deletions

View File

@@ -47,4 +47,4 @@ public interface DBCommand
void ExecuteDM(DBCommandExecutingArguments args)
{
}
}
}

View File

@@ -19,4 +19,4 @@ public interface DBEvent
/// </summary>
/// <param name="client">The discord bot client</param>
void Start(DiscordSocketClient client);
}
}

View File

@@ -1,25 +1,21 @@
using System.Collections.Generic;
using Discord;
using Discord.WebSocket;
namespace PluginManager.Interfaces
namespace PluginManager.Interfaces;
public interface DBSlashCommand
{
public interface DBSlashCommand
string Name { get; }
string Description { get; }
bool canUseDM { get; }
List<SlashCommandOptionBuilder> Options { get; }
void ExecuteServer(SocketSlashCommand context)
{
string Name { get; }
string Description { get; }
bool canUseDM { get; }
List<SlashCommandOptionBuilder> Options { get; }
void ExecuteServer(SocketSlashCommand context)
{
}
void ExecuteDM(SocketSlashCommand context) { }
}
void ExecuteDM(SocketSlashCommand context) { }
}

View File

@@ -1,23 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using PluginManager.Others;
namespace PluginManager.Interfaces
namespace PluginManager.Interfaces;
public interface ICommandAction
{
public interface ICommandAction
{
public string ActionName { get; }
public string ActionName { get; }
public string? Description { get; }
public string? Description { get; }
public string? Usage { get; }
public string? Usage { get; }
public InternalActionRunType RunType { get; }
public InternalActionRunType RunType { get; }
public Task Execute(string[]? args);
}
}
public Task Execute(string[]? args);
}