This commit is contained in:
2025-05-26 22:49:05 +02:00
parent 9532d77ca6
commit 32dda3d998

View File

@ -136,16 +136,12 @@ class PollCog(commands.Cog):
# End the poll
await self._end_poll(message_id, poll_data, passed)
def __result_embed(self, username, passed, creator_id):
def __result_embed(self, username, passed, creator_id,):
"""Create result embed for poll completion"""
title = f"Poll Results for {username}"
if passed:
description = ""
description = f" <@{creator_id}> The poll passed! Check your DMs for the invite link."
color = discord.Color.green()
if invite_url:
description += f" <@{creator_id}> The poll passed! Check your DMs for the invite link."
else:
description += " Manual invite required"
else:
description = "❌ Invitation denied"
color = discord.Color.red()