Skip to content

Instantly share code, notes, and snippets.

View nnoc's full-sized avatar
🎯
Focusing

Reff nnoc

🎯
Focusing
View GitHub Profile
@nnoc
nnoc / UtilityModule.cs
Last active January 9, 2019 10:17 — forked from foxbot/UtilityModule.cs
your purge command is really bad quick hold this
public class UtilityModule : ModuleBase
{
[Command("purge")]
[Alias("clean", "cleanup", "prune")]
[Summary("Cleans the bot's messages")]
[RequireUserPermission(ChannelPermission.ManageMessages)]
public async Task Clean(
[Summary("The optional number of messages to delete; defaults to 10")] int count = 10,
[Summary("The type of messages to delete - Self, Bot, or All")] DeleteType deleteType = DeleteType.Self,
[Summary("The strategy to delete messages - BulkDelete or Manual")] DeleteStrategy deleteStrategy = DeleteStrategy.BulkDelete)