From 525d0b7a6abd1644ae24326d4e5042b1cf07f92a Mon Sep 17 00:00:00 2001 From: phenom4n4n Date: Mon, 3 Aug 2020 13:21:34 -0700 Subject: [PATCH] colors for approved/denied suggestions +cmd delete --- suggestion/suggestion.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/suggestion/suggestion.py b/suggestion/suggestion.py index efa2ebeb..0e79b0fb 100644 --- a/suggestion/suggestion.py +++ b/suggestion/suggestion.py @@ -184,6 +184,7 @@ async def approve( op_name = str(op_info[1]) op_avatar = ctx.guild.icon_url embed.set_author(name=f"Approved suggestion by {op_name}", icon_url=op_avatar) + embed.color = discord.Color.green() if is_global: await oldmsg.edit(content=content, embed=embed) try: @@ -211,7 +212,7 @@ async def approve( pass await self.config.custom("SUGGESTION", server, suggestion_id).finished.set(True) await self.config.custom("SUGGESTION", server, suggestion_id).approved.set(True) - await ctx.tick() + await ctx.message.delete() try: await op.send(content="Your suggestion has been approved!", embed=embed) @@ -274,6 +275,7 @@ async def reject( op_name = str(op_info[1]) op_avatar = ctx.guild.icon_url embed.set_author(name=f"Rejected suggestion by {op_name}", icon_url=op_avatar) + embed.color = discord.Color.red() if reason: embed.add_field(name="Reason:", value=reason, inline=False) @@ -310,7 +312,7 @@ async def reject( pass await self.config.custom("SUGGESTION", server, suggestion_id).finished.set(True) await self.config.custom("SUGGESTION", server, suggestion_id).rejected.set(True) - await ctx.tick() + await ctx.message.delete() try: await op.send(content="Your suggestion has been rejected!", embed=embed)