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