Show removed quote as conformation

This commit is contained in:
runebaas 2018-01-21 17:17:55 +01:00
parent 815b7d6163
commit a65f9d2963
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -159,7 +159,9 @@ namespace Geekbot.net.Commands
var success = _redis.SetRemove($"{Context.Guild.Id}:Quotes", quotes[id - 1]);
if (success)
{
await ReplyAsync($"Removed quote #{id}");
var quote = JsonConvert.DeserializeObject<QuoteObject>(quotes[id - 1]);
var embed = quoteBuilder(quote);
await ReplyAsync($"**Removed #{id}**", false, embed.Build());
}
else
{