fixxx
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user