Fixed prune by removing cache? Fixed error on ~yt by removing contracts?

This commit is contained in:
Kwoth
2016-08-21 00:31:00 +02:00
parent 65cdc15cd7
commit 5d37d4529d
3 changed files with 15 additions and 3 deletions

View File

@@ -23,7 +23,13 @@ namespace NadekoBot.Modules.Administration
{
}
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
[RequireContext(ContextType.Guild)]
public async Task cmd(IMessage imsg, [Remainder] string arg)
{
var channel = imsg.Channel as ITextChannel;
}
////todo owner only
//[LocalizedCommand, LocalizedDescription, LocalizedSummary]
//[RequireContext(ContextType.Guild)]
@@ -445,6 +451,7 @@ namespace NadekoBot.Modules.Administration
public async Task Prune(IMessage msg, int count)
{
var channel = msg.Channel as ITextChannel;
await msg.DeleteAsync();
while (count > 0)
{
int limit = (count < 100) ? count : 100;