From fa58bad1499f853409ee4b654864c51472caf167 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Thu, 15 Jun 2017 22:35:12 +0200 Subject: [PATCH] fixed .qdel and greetdmmessage if it's an embed, thanks to gwen lol --- src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs | 2 +- src/NadekoBot/Services/GreetSettingsService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs index 7ac9d21f..5ac2e69a 100644 --- a/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs @@ -170,7 +170,7 @@ namespace NadekoBot.Modules.Utility [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] - public async Task DeleteQuote(int id) + public async Task QuoteDelete(int id) { var isAdmin = ((IGuildUser) Context.Message.Author).GuildPermissions.Administrator; diff --git a/src/NadekoBot/Services/GreetSettingsService.cs b/src/NadekoBot/Services/GreetSettingsService.cs index 7e5c8128..6e2e630d 100644 --- a/src/NadekoBot/Services/GreetSettingsService.cs +++ b/src/NadekoBot/Services/GreetSettingsService.cs @@ -141,7 +141,7 @@ namespace NadekoBot.Services if (channel != null) { CREmbed embedData; - if (CREmbed.TryParse(conf.ChannelGreetMessageText, out embedData)) + if (CREmbed.TryParse(conf.DmGreetMessageText, out embedData)) { embedData.PlainText = embedData.PlainText?.Replace("%user%", user.ToString()).Replace("%id%", user.Id.ToString()).Replace("%server%", user.Guild.Name); embedData.Description = embedData.Description?.Replace("%user%", user.ToString()).Replace("%id%", user.Id.ToString()).Replace("%server%", user.Guild.Name);