Updated .net core to 1.1, fixed #782

This commit is contained in:
Kwoth
2016-11-20 12:11:23 +01:00
parent 0e1f644d7f
commit 1df4aa7770
3 changed files with 25 additions and 26 deletions

View File

@@ -593,10 +593,10 @@ namespace NadekoBot.Modules.Administration
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequirePermission(GuildPermission.ManageChannels)]
public async Task DelTxtChanl(IUserMessage umsg, [Remainder] ITextChannel channel)
public async Task DelTxtChanl(IUserMessage umsg, [Remainder] ITextChannel toDelete)
{
await channel.DeleteAsync().ConfigureAwait(false);
await channel.SendMessageAsync($"❗Removed text channel **{channel.Name}**, ID `{channel.Id}`.").ConfigureAwait(false);
await toDelete.DeleteAsync().ConfigureAwait(false);
await umsg.Channel.SendMessageAsync($"❗Removed text channel **{toDelete.Name}**, ID `{toDelete.Id}`.").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]