From bd70dc21fd500b8adbde9d27b0e3d69f6ca494ac Mon Sep 17 00:00:00 2001 From: samvaio Date: Thu, 1 Dec 2016 17:20:27 +0530 Subject: [PATCH] Update Administration.cs --- src/NadekoBot/Modules/Administration/Administration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index efba6f96..8df86138 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -635,11 +635,11 @@ namespace NadekoBot.Modules.Administration //delets her own messages, no perm required [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] - public async Task Prune(IUserMessage umsg) + public async Task Prune(IUserMessage umsg, int count) { var channel = (ITextChannel)umsg.Channel; var user = channel.Guild.GetCurrentUser(); - var enumerable = (await umsg.Channel.GetMessagesAsync(100)).Where(x => x.Author.Id == user.Id); + var enumerable = (await umsg.Channel.GetMessagesAsync(count : 100)).Where(x => x.Author.Id == user.Id); await umsg.Channel.DeleteMessagesAsync(enumerable); }