From 1df4aa77706f947b41c0d4105cbc418793ead5cd Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 20 Nov 2016 12:11:23 +0100 Subject: [PATCH] Updated .net core to 1.1, fixed #782 --- .../Modules/Administration/Administration.cs | 6 +-- src/NadekoBot/credentials.json | 2 +- src/NadekoBot/project.json | 43 +++++++++---------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index e6c475f7..9bc85a2e 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -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] diff --git a/src/NadekoBot/credentials.json b/src/NadekoBot/credentials.json index 31a9414f..30f8f88f 100644 --- a/src/NadekoBot/credentials.json +++ b/src/NadekoBot/credentials.json @@ -1,7 +1,7 @@ { "ClientId": 123123123, "BotId": null, - "Token": "", + "Token": "MTE5Nzc3MDIxMzE5NTc3NjEw.CxK2Og.N4u_RpZws88zmXWF16mQaQUSphI", "OwnerIds": [ 0 ], diff --git a/src/NadekoBot/project.json b/src/NadekoBot/project.json index 1b2c1995..9a7fc61d 100644 --- a/src/NadekoBot/project.json +++ b/src/NadekoBot/project.json @@ -17,38 +17,37 @@ "define": [] }, "dependencies": { - "Microsoft.NETCore.App": { - "type": "platform", - "version": "1.0.0" - }, - "Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0", - "Microsoft.Extensions.PlatformAbstractions": "1.0.0", - "Newtonsoft.Json": "9.0.1", - "Microsoft.Extensions.DependencyInjection": "1.0.0", - "Google.Apis.YouTube.v3": "1.17.0.582", - "Google.Apis.Urlshortener.v1": "1.17.0.138", - "Google.Apis.Customsearch.v1": "1.17.0.466", - "System.Diagnostics.Contracts": "4.0.1", - "NLog": "4.4.0-betaV15", "VideoLibrary": "1.3.4", - "Microsoft.EntityFrameworkCore": "1.0.0", - "Microsoft.EntityFrameworkCore.Design": "1.0.0-preview2-final", - "Microsoft.EntityFrameworkCore.Sqlite": "1.0.0", "CoreCLR-NCalc": "2.1.2", - "ImageProcessorCore": "1.0.0-alpha-1021", "Discord.Net.Commands": { "target": "project" }, "Discord.Net": { "target": "project" }, - "System.Xml.XPath": "4.0.1", - "Microsoft.Extensions.Configuration": "1.0.0", - "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", - "Microsoft.Extensions.Configuration.Json": "1.0.0" + "Google.Apis.Urlshortener.v1": "1.19.0.138", + "Google.Apis.YouTube.v3": "1.19.0.655", + "ImageProcessorCore": "1.0.0-alpha1095", + "Microsoft.EntityFrameworkCore": "1.1.0", + "Microsoft.EntityFrameworkCore.Design": "1.1.0", + "Microsoft.EntityFrameworkCore.Sqlite": "1.1.0", + "Microsoft.Extensions.Configuration": "1.1.0", + "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", + "Microsoft.Extensions.Configuration.Json": "1.1.0", + "Microsoft.Extensions.DependencyInjection": "1.1.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0", + "Microsoft.Extensions.PlatformAbstractions": "1.1.0", + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.1.0" + }, + "Newtonsoft.Json": "9.0.2-beta1", + "NLog": "5.0.0-beta03", + "System.Diagnostics.Contracts": "4.3.0", + "System.Xml.XPath": "4.3.0" }, "tools": { - "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final" + "Microsoft.EntityFrameworkCore.Tools": "1.1.0-preview4-final" }, "frameworks": { "netcoreapp1.0": {