This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command("purge")] | |
[Alias("clean")] | |
[Summary("Downloads and removes X messages from the current channel.")] | |
[RequireUserPermission(ChannelPermission.ManageMessages)] | |
[RequireBotPermission(ChannelPermission.ManageMessages)] | |
public async Task PurgeAsync(int amount) | |
{ | |
// Check if the amount provided by the user is positive. | |
if (amount <= 0) | |
{ |