Update Administration.cs
This commit is contained in:
parent
7315f5dc79
commit
c0eaf39607
@ -638,9 +638,8 @@ namespace NadekoBot.Modules.Administration
|
||||
public async Task Prune(IUserMessage umsg)
|
||||
{
|
||||
var channel = (ITextChannel)umsg.Channel;
|
||||
|
||||
int count = 100
|
||||
var user = channel.Guild.GetCurrentUser();
|
||||
|
||||
var enumerable = (await umsg.Channel.GetMessagesAsync()).AsEnumerable();
|
||||
enumerable = enumerable.Where(x => x.Author.Id == user.Id);
|
||||
await umsg.Channel.DeleteMessagesAsync(enumerable);
|
||||
|
Loading…
Reference in New Issue
Block a user