1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:09:00 +03:00
Octobot/Boyfriend/Commands/Command.cs
l1ttleO f30485dd71
ton of stuff
- new command handler
- multilanguage support
- time out support
- responses
- a ton of stuff
2022-01-18 22:38:15 +05:00

19 lines
No EOL
531 B
C#

using Discord;
using Discord.Commands;
using Discord.WebSocket;
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(ISocketMessageChannel channel, string warning) {
await Utils.SilentSendAsync(channel as ITextChannel, ":warning: " + warning);
}
}