fixed .qdel and greetdmmessage if it's an embed, thanks to gwen lol

This commit is contained in:
Master Kwoth 2017-06-15 22:35:12 +02:00
parent 3bf224ab57
commit fa58bad149
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ namespace NadekoBot.Modules.Utility
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)] [RequireContext(ContextType.Guild)]
public async Task DeleteQuote(int id) public async Task QuoteDelete(int id)
{ {
var isAdmin = ((IGuildUser) Context.Message.Author).GuildPermissions.Administrator; var isAdmin = ((IGuildUser) Context.Message.Author).GuildPermissions.Administrator;

View File

@ -141,7 +141,7 @@ namespace NadekoBot.Services
if (channel != null) if (channel != null)
{ {
CREmbed embedData; 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.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); embedData.Description = embedData.Description?.Replace("%user%", user.ToString()).Replace("%id%", user.Id.ToString()).Replace("%server%", user.Guild.Name);