forked from TeamInklings/Octobot
l1ttleO
868b6bcaa7
rewrote setting values in SettingsCommand.cs fixed a bug with message edited notification on mobile fixed an exploit with WrapInline where you could escape the code block by simply using ` moved a few things in MuteCommand.cs cleaned up code updated library to 3.3.2
18 lines
No EOL
482 B
C#
18 lines
No EOL
482 B
C#
using Discord;
|
|
using Discord.Commands;
|
|
|
|
namespace Boyfriend.Commands;
|
|
|
|
public abstract class Command {
|
|
public abstract Task Run(SocketCommandContext context, string[] args);
|
|
|
|
public abstract List<string> GetAliases();
|
|
|
|
public abstract int GetArgumentsAmountRequired();
|
|
|
|
public abstract string GetSummary();
|
|
|
|
protected static async Task Warn(ITextChannel? channel, string warning) {
|
|
await Utils.SilentSendAsync(channel, ":warning: " + warning);
|
|
}
|
|
} |