Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions suggestion/suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down