From d0e7a0c404d87a50c851111c86d364678d59c15e Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 1 Jan 2017 13:28:35 +0100 Subject: [PATCH] compiles and runs --- src/NadekoBot/Modules/Games/Commands/Acropobia.cs | 2 +- src/NadekoBot/Modules/Searches/Searches.cs | 2 +- src/NadekoBot/Modules/Utility/Utility.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Games/Commands/Acropobia.cs b/src/NadekoBot/Modules/Games/Commands/Acropobia.cs index 5ee97e98..4160754b 100644 --- a/src/NadekoBot/Modules/Games/Commands/Acropobia.cs +++ b/src/NadekoBot/Modules/Games/Commands/Acropobia.cs @@ -28,7 +28,7 @@ namespace NadekoBot.Modules.Games [RequireContext(ContextType.Guild)] public async Task Acro(int time = 60) { - var channel = (ITextChannel)imsg.Channel; + var channel = (ITextChannel)Context.Channel; var game = new AcrophobiaGame(channel, time); if (AcrophobiaGames.TryAdd(channel.Id, game)) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 85a8f858..7ac8f63e 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -552,7 +552,7 @@ namespace NadekoBot.Modules.Searches [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] public Task Safebooru([Remainder] string tag = null) - => InternalDapiCommand(umsg, tag, DapiSearchType.Safebooru); + => InternalDapiCommand(Context.Message, tag, DapiSearchType.Safebooru); [NadekoCommand, Usage, Description, Aliases] public async Task Wiki([Remainder] string query = null) diff --git a/src/NadekoBot/Modules/Utility/Utility.cs b/src/NadekoBot/Modules/Utility/Utility.cs index f9ef6a33..d6dadc45 100644 --- a/src/NadekoBot/Modules/Utility/Utility.cs +++ b/src/NadekoBot/Modules/Utility/Utility.cs @@ -36,7 +36,7 @@ namespace NadekoBot.Modules.Utility .WithAuthor(eab => eab.WithIconUrl("https://togethertube.com/assets/img/favicons/favicon-32x32.png") .WithName("Together Tube") .WithUrl("https://togethertube.com/")) - .WithDescription($"{imsg.Author.Mention} Here is your room link:\n{target}")); + .WithDescription($"{Context.User.Mention} Here is your room link:\n{target}")); } [NadekoCommand, Usage, Description, Aliases]